that really depends on what you want to end up with, do you want to have
your time as a TDateTime regardless of the settings of the OS? if you rely
on the OS settings you will get loads of complaints from customers :)

where is this time coming from? a database? a text box? from the serial
port? it could give an indication of how this can be achieved without alot
of confusing programing

let me know

j

-----Original Message-----
From: "Brad Hall" <[EMAIL PROTECTED]>
To: <[email protected]>
Date: Tue, 7 Feb 2006 09:49:59 +1100
Subject: [delphi-en] TimeToStr

> Hi everybody :-)
> 
> Has any1 encountered a Windows OS that has the regional settings for
> the
> Time Separator set as ' ' (a space) instead of the usual ':' (colon) +
> then tried to use the TimeToStr func in Delphi? eg: the time appears as
> "10 26" instead of "10:26" in Windows. I keep getting a "Date value not
> valid" error.
> 
>  
> 
> I've tried setting the TimeSeparator, ShortTimeFormat + LongTimeFormat
> values in Delphi, but that doesn't help. The only way I got around this
> issue at the moment was to extract the hrs, mins + secs from the string
> containing the time + then pass those vals into the EncodeTime func.
> 
>  
> 
> Has any1 got any ideas that don't involve splitting the time string +
> passing the vals to EncodeTime?
> 
> Using D6E.
> 
>  
> 
> Thanks :-)
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
> -----------------------------------------------------
> Home page: http://groups.yahoo.com/group/delphi-en/
> To unsubscribe: [EMAIL PROTECTED] 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 




-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to