>>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