StringToDTFormatted: Difference between revisions
From MultiCharts
→Example
Dave Masalov (talk | contribs) No edit summary |
Dave Masalov (talk | contribs) |
||
Line 56: | Line 56: | ||
<syntaxhighlight>StringToDTFormatted("17/02/11", "MM/dd/yy")</syntaxhighlight> will return -1, string conversion to DateTime format failed. | <syntaxhighlight>StringToDTFormatted("17/02/11", "MM/dd/yy")</syntaxhighlight> will return -1, string conversion to DateTime format failed. | ||
<syntaxhighlight>StringToDTFormatted("4:00 PM", "h:mm tt")</syntaxhighlight> will return 2.666666666666667 , which represents the minimum value of JulianDate = January 1st 1900 | <syntaxhighlight>StringToDTFormatted("4:00 PM", "h:mm tt")</syntaxhighlight> will return 2.666666666666667 , which represents the minimum value of JulianDate = January 1st 1900, 4:00 PM. | ||
[[Category:Date and Time Routines]] | [[Category:Date and Time Routines]] |