Re: [fpc-pascal] Converting date formats

2020-10-03 Thread Michael Van Canneyt via fpc-pascal
On Sat, 3 Oct 2020, Ryan Joseph via fpc-pascal wrote: I have no idea about dates and where to find these functions in the RTL. I just saw the date at https://tools.ietf.org/html/rfc3339. Well, if you are really ignorant about these functions, why not go to the index page (linked to from the

Re: [fpc-pascal] Converting date formats

2020-10-03 Thread Winfried Bartnick via fpc-pascal
Am 03.10.20 um 22:36 schrieb Ryan Joseph via fpc-pascal: On Oct 3, 2020, at 2:15 PM, Winfried Bartnick via fpc-pascal wrote: Hi! Timezones are handled by the package PascalTZ. It is available through the Online Package Manager. Winni Thanks. I think the format I had was ISO8601 but had

Re: [fpc-pascal] Converting date formats

2020-10-03 Thread Ryan Joseph via fpc-pascal
> On Oct 3, 2020, at 2:15 PM, Winfried Bartnick via fpc-pascal > wrote: > > Hi! > > > Timezones are handled by the package PascalTZ. > > It is available through the Online Package Manager. > > Winni Thanks. I think the format I had was ISO8601 but had decimal precision for the seconds. A

Re: [fpc-pascal] Converting date formats

2020-10-03 Thread Winfried Bartnick via fpc-pascal
Am 03.10.20 um 18:52 schrieb Ryan Joseph via fpc-pascal: On Oct 3, 2020, at 10:37 AM, Michael Van Canneyt wrote: Do you ever read the documentation ? You might then have read why the above will never work. You probably need this: https://www.freepascal.org/docs-html/current/rtl/dateutils

Re: [fpc-pascal] Converting date formats

2020-10-03 Thread Ryan Joseph via fpc-pascal
> On Oct 3, 2020, at 10:37 AM, Michael Van Canneyt > wrote: > > Do you ever read the documentation ? > > You might then have read why the above will never work. > > You probably need this: > > https://www.freepascal.org/docs-html/current/rtl/dateutils/iso8601todate.html > > or even this >

Re: [fpc-pascal] Converting date formats

2020-10-03 Thread Michael Van Canneyt via fpc-pascal
On Sat, 3 Oct 2020, Ryan Joseph via fpc-pascal wrote: I have some dates formats like this which I would like to convert to TDateTime. Are these supported in the RTL? I tried using the StrToDate functions but I got errors. program test; uses SysUtils; begin StrToDate('2001-12-14T21:59:43.1