Difference between revisions of "ScriptCore3.StrToDate"

From Soldat Community Wiki
Jump to: navigation, search
(new page)
 
m (Description)
Line 5: Line 5:
 
==Description==
 
==Description==
 
This function will try to convert "''yyyy-mm-dd''" string into [[TDateTime]] format.
 
This function will try to convert "''yyyy-mm-dd''" string into [[TDateTime]] format.
{{bug|"''2006-01-01''" is being checked as a "''006-01-01''" input --[[User:Mighty|Mighty]] ([[User talk:Mighty|talk]]) 05:34, 25 August 2013 (EDT)}}
+
{{bug|"''2006-01-01''" is being checked as a "''006-01-01''" input]) 05:34, 25 August 2013 (EDT)}}
{{bug|furthermore, "'' 2006-01-01''" is being checked as intended, but recognised as not a valid input --[[User:Mighty|Mighty]] ([[User talk:Mighty|talk]]) 05:34, 25 August 2013 (EDT)}}
+
{{bug|furthermore, "'' 2006-01-01''" is being checked as intended, but recognised as not a valid input}}
  
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 11:37, 25 August 2013

 function StrToDate(const s: string): TDateTime;
s: string to be converted
Result: date in a TDateTime format

Description

This function will try to convert "yyyy-mm-dd" string into TDateTime format.

Bug: "2006-01-01" is being checked as a "006-01-01" input]) 05:34, 25 August 2013 (EDT)
Bug: furthermore, " 2006-01-01" is being checked as intended, but recognised as not a valid input