$time parser

Allows you to convert the string representation of a date and time to its DateTime equivalent.


Example

Running this code will will set the variable "#input" to "Your program recognizes string : 25 Jun 2014 04:20:19 -0430 blah blah." Then "#input" will be converted to the date and time equivalent as "06/25/2014 04:20:19".

set(#input,"Your program recognizes string : 25 Jun 2014 04:20:19 -0430 blah blah.","Global")
load html($plugin function("Time and Date Automation.dll", "$time parser", #input, "Parse Date Time", "USA", "UBOT (MM/dd/yyyy HH:mm:ss)"))

Running this code will will set the variable "#input" to "date Tue, Feb 11, 2014 at 10:14 AM" Then "#input" will be converted to the date and time equivalent as "06/25/2014 04:20:19".

set(#input,"date    Tue, Feb 11, 2014 at 10:14 AM","Global")
load html($plugin function("Time and Date Automation.dll", "$time parser", #input, "Parse Date Time", "USA", "UBOT (MM/dd/yyyy HH:mm:ss)"))

Was this helpful?

Previous Article

$time increment

Next Article

$time random