Difference between revisions of "ScriptCore3.StrToDate"

From Soldat Community Wiki
Jump to: navigation, search
(new page)
 
m (Description)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
  '''function StrToDate(const s: string): TDateTime;'''
+
'''function StrToDate(const s: string): TDateTime;'''
s: string to be converted
+
  s: string to be converted
Result: date in a [[TDateTime]] format
+
  Result: date in a [[TDateTime]] format
  
 
==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|doesn't really work (Bug no. 401)}}
{{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)}}
 
  
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 09:23, 26 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: doesn't really work (Bug no. 401)