User Tools

Site Tools


syntax:functions:date

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
syntax:functions:date [2021/08/30 01:59] – [Arguments] craigtsyntax:functions:date [2023/11/24 21:03] – [Remarks] craigt
Line 14: Line 14:
 ^Argument^Type^Description^ ^Argument^Type^Description^
 |datetime  |Text  |A text value representing a date and/or time value to be converted to a numeric date-time serial value.| |datetime  |Text  |A text value representing a date and/or time value to be converted to a numeric date-time serial value.|
-|format  |Text  |The layout of the date-time components  in //datetime// describing the order and type of the date-time components.  See the "Date-Time format components" tables below.|+|format  |Text  |(Optional) The layout of the date-time components in //datetime// describing the order and type of the date-time components. If omitted, EasyMorph will attempt to detect the date format automatically. See the "Date-Time format components" tables below.|
  
 **Return value type:** Number (date-time serial value). **Return value type:** Number (date-time serial value).
Line 56: Line 56:
 If a time value is used for the //datetime// argument, the return value will use today's date for the date component. If a time value is used for the //datetime// argument, the return value will use today's date for the date component.
  
 +While it can be convenient, in some cases, to omit the //format//, it is recommended to specify the date format explicitly, when possible, to ensure deterministic behavior.
 \\  \\ 
 =====Examples===== =====Examples=====
syntax/functions/date.txt · Last modified: 2023/11/24 21:06 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki