Home › Discussions › Questions & Answers › Timezone Conversion Utility Functions

5 replies

  • Support Enginatics

    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.

  • And if I have a date entered by the user on the client side that I need to convert back to the server time for processing?

  • Support Enginatics

    For the reverse operation, use `XXEN_UTIL.SERVER_TIME(p_date in date)`. This function converts a date from the client timezone back to the server timezone if a difference is detected.

  • Does the conversion logic handle daylight savings time automatically?

  • Support Enginatics

    The functions check for differences in time zones between the client and server based on the profile values and perform the conversion accordingly.

  • You must be logged in to reply to this post.