time format

brendanwilson84
Kilo Guru

Hi Guys

I have a time field that is defaulted to current time and works as expected. However, I have got a request of "Can this be in 12 hour am/pm format instead of 24 hour"

Any way I can achieve this?

find_real_file.png

6 REPLIES 6

Hello


The default date and time formats are defined globally using system properties. I do not think you can set it only for one specific field



Global date and time field format


Hi Brendan,



As stated by Dravvy Ramlochum, the global Glide APIs are not available in scoped scripts. However, there are scoped Glide APIs for use in scoped scripts. The scoped Glide APIs provide a subset of the global Glide API methods.



The scoped GlideSystem (referred to by the variable name 'gs' in any server-side JavaScript) API provides a number of convenient methods to get information about the system, the current logged in user, etc.



For more details, refer to this link.