date
Provides methods for working with dates.
Last updated
Provides methods for working with dates.
Last updated
Returns a future or a past date
Parameters:
Name | Type | Description |
---|---|---|
Returns:
String
- Date formatted according to the specified format string.
Returns current date and time
See http://momentjs.com/docs/#/displaying/format/ for supported format strings.
Parameters:
Name | Type | Description |
---|---|---|
Returns:
String
- Date formatted according to the specified format string.
unit
String
Unit type. See http://momentjs.com/docs/#/manipulating/add/
value
Number
Number of minutes/days/months/etc to add or subtract from the current date.
format
String
Format string.
format
String
Format string.