Small problem here. Let愀 say that i have a TDateTime like this on a
European Computer that uses the this TDateTime format.
5/6/2002 23:10:23
And i send this to an US computer. Now US don愒 use the 24 hour system but
the 12 hour and the date looks a little different. How can i format the
TDateTime value so it will be dispalyed correctly to any user on a windows
machine?
Is there a DateTimeToLocal?
Thanx In Advance
Romeo
> Small problem here. Let's say that i have a TDateTime like this on a
> European Computer that uses the this TDateTime format.
>
> 5/6/2002 23:10:23
>
> And i send this to an US computer. Now US don't use the 24 hour system
> but the 12 hour and the date looks a little different. How can i
> format the TDateTime value so it will be dispalyed correctly to any
> user on a windows machine?
How are you "sending" the data? If you send it as a floating point
number instead of a string you won't have to worry about regional date
formatting issues.
--
-Mike (TeamB)
How can i do this?
How do i convert a TDateTime to a floating point. Can you show me an
example?
Thanx In Advance,
Romeo
"Mike Williams (TeamB)" <mi...@remove.aps-soft.com> skrev i meddelandet
news:Xns9256784C95...@207.105.83.65...
> How do i convert a TDateTime to a floating point. Can you show me an
> example?
It already is a floating point number.
Caption := Format('%0.5f', [Now]);
--
-Mike (TeamB)