DateTime.now() returned format

Does DateTime.now() always return the DateTime struct in the 24h format, or does it also return in a 12h format dependent on the settings of the system the application is running on?

PS: I know there is the GetHour12() function to use with the DateTime struct. I just want to know, whether DateTime.now() would ever directly return a 12h format.

Hey @IKillYou!

It seems DateTime.now() does in fact only return a uniform 24 hour time. Here are some non-Epic affiliated links with more information about that function:

https://www.geeksforgeeks.org/python-now-function/

https://docs.microsoft.com/en-us/dotnet/api/system.datetime.now?view=net-6.0

I hope that the above provides the information you are looking for.

2 Likes