| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 
 | let
	date_debut_full = "1925-12-20 19H10H52",
	date_fin_full = "1925-12-20 20H20H30",
	date_debut = moment(date_debut_full), //.format("HH:MM:SS"),
	date_fin = moment(date_fin_full); //.format("HH:MM:SS");
 
console.log( date_debut,  date_fin );
 
/*
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls
back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are
discouraged and will be removed in an upcoming major release. Please refer to
http://momentjs.com/guides/#/warnings/js-date/ for more info.
 
Object { _isAMomentObject: true, _i: "1925-12-20 19H10H52", _isUTC: false, _pf: {
}, _locale: {
}, _d: Invalid Date, _isValid: false }
 
Object { _isAMomentObject: true, _i: "1925-12-20 20H20H30", _isUTC: false, _pf: {
}, _locale: {
}, _d: Invalid Date, _isValid: false }
*/ | 
Partager