Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set hours to 12|24
Message
 
 
To
12/09/2011 09:05:51
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Product Documentation
Miscellaneous
Thread ID:
01523209
Message ID:
01523221
Views:
58
>>Return value of dateime() is not affected by SET HOURS or other date/time related SET commands. It would a bug if it was
>>
>>>
>>>When I Set Hours to 12, datetime() is returning a time as if I had set hours to 24. How can I be sure to get a 12 hours notation?
>
>Sergey,
>
>I agree with Naomi, the Helpfile says explicit the value returned by DATETIME( ) is determined by the current SET HOURS setting. More important how can I get a 12 hour notation or am I forced to make a function?
>
>Regards,
>
>Koen

In my tests I always got 12 hours (AM/PM) output regardless on the settings. Unless it's ? that affected it and I'm going to try with MESSAGEBOX now.

UPDATE. I got the same result with the MESSAGEBOX also.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform