StartOfUnitMoment extension

on

Methods

startOf(DurationUnit unit) Moment

Available on Moment, provided by the StartOfUnitMoment extension

Returned object will have same timezone as this
startOfDay() Moment

Available on Moment, provided by the StartOfUnitMoment extension

Returns start of the day
startOfHour() Moment

Available on Moment, provided by the StartOfUnitMoment extension

Returns start of the hour
startOfIsoWeek() Moment

Available on Moment, provided by the StartOfUnitMoment extension

Returns start of the ISO week (always Monday)
startOfLocalWeek([int? weekStart]) Moment

Available on Moment, provided by the StartOfUnitMoment extension

Returns start of the week based on localization.weekStart. You can override this with weekStart
startOfMillisecond() Moment

Available on Moment, provided by the StartOfUnitMoment extension

Returns start of the millisecond
startOfMinute() Moment

Available on Moment, provided by the StartOfUnitMoment extension

Returns start of the minute
startOfMonth() Moment

Available on Moment, provided by the StartOfUnitMoment extension

Returns start of the month
startOfSecond() Moment

Available on Moment, provided by the StartOfUnitMoment extension

Returns start of the second
startOfYear() Moment

Available on Moment, provided by the StartOfUnitMoment extension

Returns start of the year