API / DateTime / DateTimeOptionsWhenParsing
Defined in: src/typings/parser.ts:6
Extends
DateTimeOptions
Properties
Property | Type | Description |
---|---|---|
allowRelative? |
boolean |
- |
format? |
string |
Strict format for parsing user's input |
lang? |
string |
- |
roundUp? |
boolean |
If the input is a relative date, e.g. now-6h, then you can specify this to control whether the last part of the date and time value is included or excluded. Example: now-6h and the current time is 12:20:00 if roundUp is set to true the returned DateTime value will be 06:00:00. |
timeZone? |
string |
Specify this if you want to override the timeZone used when parsing or formatting a date and time value. If no timeZone is set, the default timeZone for the current user is used. |
Previous
Next