is this a bug or something is done incorrectly?
Date parser - convert any date format to YYYYMMDDHH24MISS
I downloaded DateParse Version 1.05 today.
This code:n := DateParse("2007-06-26T14:09:12Z")msgbox %n%
(The hour is incorrect)
Is there something I need to change?
My timezone is currently NZDT, UTC+13
Changing this line works for this example:
+ (t1 = 12 ? t4 = "am" ? -12.0 : 0.0 : t4 = "am" or t4="" ? 0.0 : 12.0) . t2 + 0.0 . t3 + 0.0
Is it possible to have the Date parser able to process a date in this format: "Wednesday 9 July 2014 3:10:17"
Both these are correctly interpreted in the version I posted at http://www.autohotke...e-6#entry640277.
DateParse("2007-06-26T14:09:12Z") returns "20070626140912" and DateParse("Wednesday 9 July 2014 3:10:17") returns "20140709031017".
@v_2 that doesn't surprise me - get rid of the @ and perhaps you need to reformat the time as well - you could write a simple pre-parser to remove the @ and trim the .msec-0600 bit before passing it on to dateparse (a small function with two or three commands SubStr and StrReplace)
Actually I got it to work by changing it from
So, I replaced the first "[" with "[20". It seems to work OK with the @, the time and the extra information at the end. This will work until the year 2100, good enough for me.