Home Discussions Questions & Answers Utility Functions for Date/Timezone Conversion

Utility Functions for Date/Timezone Conversion

Avatar photoCustomer August 10, 2021 at 8:45 pm

Our reports must display server-recorded dates converted accurately to the client’s local timezone. Which `XXEN_UTIL` function performs this conversion?

Viewing 2 reply threads
  • Author
    Replies
    • Support August 11, 2021 at 12:37 pm  

      You should use the function `XXEN_UTIL.CLIENT_TIME(p_date in date)`. It takes a date in the server’s timezone and converts it to the client’s local timezone, provided the ‘Server Timezone’ and ‘Client Timezone’ profile options are set.

    • Avatar photoCustomer August 12, 2021 at 6:44 pm  

      And if I need to perform the reverse operation for a client-entered date?

    • Support August 14, 2021 at 10:50 am  

      For the reverse operation (client time back to server time), use `XXEN_UTIL.SERVER_TIME(p_date in date)`.

Viewing 2 reply threads
  • You must be logged in to reply to this post.

Login with: