Re: [fpc-pascal] ShortDateFormat

2015-05-07 Thread David Copeland
Thanks Bart. On 05/07/2015 12:48 PM, Bart wrote: > On 5/7/15, David Copeland wrote: > >> Sorry, I think I just answered my own question :-! . Woult using the >> TFormatsetting variant of StrToDateTime be the "better way"? > Yes. > > Bart > ___ fpc-pasc

Re: [fpc-pascal] ShortDateFormat

2015-05-07 Thread Bart
On 5/7/15, David Copeland wrote: > Sorry, I think I just answered my own question :-! . Woult using the > TFormatsetting variant of StrToDateTime be the "better way"? Yes. Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.f

Re: [fpc-pascal] ShortDateFormat

2015-05-07 Thread David Copeland
Sorry, I think I just answered my own question :-! . Woult using the TFormatsetting variant of StrToDateTime be the "better way"? Dave. On 05/07/2015 12:25 PM, David Copeland wrote: > Hi all, > > I am using the following bit of code to convert a date from an external > source. > > var >

[fpc-pascal] ShortDateFormat

2015-05-07 Thread David Copeland
Hi all, I am using the following bit of code to convert a date from an external source. var timestamp: TDateTime; event_date, event_time: string; begin ShortDateFormat := 'm/d/y'; try timestamp := StrToDateTime(event_da