In JavaScript:
var todayDate = new Date();
How to convert the actual date to this format (example):
Mon Aug 25 2014
In JavaScript:
var todayDate = new Date();
How to convert the actual date to this format (example):
Mon Aug 25 2014
toDateString()
gives you exactly that format.
var todayDate = new Date();
todayDate.toDateString(); // "Thu Aug 14 2014"
You can use plugins like Moment.js or you can just ...todayDate.getDay() + ' ' + todayDate.getFullYear()