MomentHelper
MomentHelper
Constructors
Constructor
new MomentHelper():
MomentHelper
Returns
MomentHelper
Methods
create()
staticcreate(date,format?,strict?):Moment
Creates an instance of moment with the provided date string.
Parameters
date
string
A string that provides a date
format?
string
[Default = "DD.MM.YYYY"] - A string that provides the date format from the date string. This is an optional parameter. Default value is in German layout.
strict?
boolean
[Default = true]
Returns
Moment
- return an instance of Moment
Static
Member Of
MomentHelper
dayOfMonth()
staticdayOfMonth(date):number
Gets the day of the month (from 1 to 31)
Parameters
date
string
a string that provides a date
Returns
number
- returns an number from 1 to 31
Static
Member Of
MomentHelper