5 examples of 'moment min js' in JavaScript

Every line of 'moment min js' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
39function _toMoment (date) {
40 return moment(date).tz(TIME_ZONE)
41}
657function getMoment () {
658 return ref.clone();
659}
32get min(): Date {
33 const date: Date = new Date();
34 return new Date(date.getFullYear(), date.getMonth(), 1);
35}
6DateRange.min = function min(min, actual) {
7 var matches = actual.match(exp)
8 var start = matches[1] // get the first date
9 min = new Date(min)
10 start = new Date(start)
11 return min <= start
12}
782DateTimePicker.prototype.getMoment = function getMoment(d) {
783 var returnMoment = void 0;
784
785 if (d === undefined || d === null) {
786 returnMoment = moment(); //TODO should this use format? and locale?
787 } else if (this._hasTimeZone()) {
788 // There is a string to parse and a default time zone
789 // parse with the tz function which takes a default time zone if it is not in the format string
790 returnMoment = moment.tz(d, this.parseFormats, this._options.useStrict, this._options.timeZone);
791 } else {
792 returnMoment = moment(d, this.parseFormats, this._options.useStrict);
793 }
794
795 if (this._hasTimeZone()) {
796 returnMoment.tz(this._options.timeZone);
797 }
798
799 return returnMoment;
800};

Related snippets