SyntaxFix
Write A Post
Hire A Developer
Questions
It will be very helpful to get current date and time.
var date=new Date(); var today=new Date(date.getTime() - (date.getTimezoneOffset() * 60000)).toISOString().replace(/T/, ' ').replace(/\..+/, '');