StartOfUnitMoment extension

on

Methods

startOf(DurationUnit unit) Moment
Returned object will have same timezone as this
startOfDay() Moment
Returns start of the day
startOfHour() Moment
Returns start of the hour
startOfIsoWeek() Moment
Returns start of the ISO week (always Monday)
startOfLocalWeek([int? weekStart]) Moment
Returns start of the week based on localization.weekStart. You can override this with weekStart
startOfMillisecond() Moment
Returns start of the millisecond
startOfMinute() Moment
Returns start of the minute
startOfMonth() Moment
Returns start of the month
startOfSecond() Moment
Returns start of the second
startOfYear() Moment
Returns start of the year