Every line of 'moment get current date' 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.
12 function getCurrentDate() { 13 var now = new Date(); 14 return now.toISOString(); 15 }
66 function getCurrentDate() { 67 date = $("#date-picker").val(); 68 time = $("#spinner").val(); 69 millis = Date.parse(date + " " + time + " GMT"); 70 return new Date(millis) 71 }
3 export function currentDate(): string { 4 return moment().format('[Today is a] dddd'); 5 }
657 function getMoment () { 658 return ref.clone(); 659 }
96 public getCurrentDate(): string { 97 /* Return current year(string) to display in calendar header. */ 98 return this.state.date.year().toString(); 99 }
98 public getCurrentDate(): string { 99 /* Return currently selected year and month(string) to display in calendar header. */ 100 return this.state.date.format('MMMM YYYY'); 101 }
649 function getDate () { 650 return ref.toDate(); 651 }
6 function getToday() { 7 var now = new Date(); 8 now.setHours(0); 9 now.setMinutes(0); 10 now.setSeconds(0); 11 now.setMilliseconds(0); 12 return now; 13 }
116 export function currentDateTime(): ISimpleDateTime { 117 return dateToSimpleDateTime(new Date()); 118 }
308 function CurrentDateTime() { 309 var currentdate = new Date(); 310 var datetime = "Last Sync: " 311 + (currentdate.getMonth()+1) + "/" 312 + currentdate.getDate() + "/" 313 + currentdate.getFullYear() + " @ " 314 + currentdate.getHours() + ":" 315 + currentdate.getMinutes() + ":" 316 + currentdate.getSeconds(); 317 return datetime; 318 }