Files
MagicSetEditor2/doc/function/to_date.txt
T
Djack Donovan d1bac74eb9 Script: to_date accepts "now" as an argument
indentation fix
2022-11-18 21:40:12 -05:00

22 lines
422 B
Plaintext

Function: to_date
DOC_MSE_VERSION: since 0.3.8
--Usage--
> to_date(any value)
Convert a string value to a [[type:date]].
--Parameters--
! Parameter Type Description
| @input@ [[type:string]] Value to convert to a date.
--Examples--
> to_date("2008-12-31 23:59:59")
> to_date("today midnight")
> to_date("today noon")
> to_date("now")
--See also--
| [[fun:to_string]] Convert dates to strings