Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
Hello
I need to use 3 variables for different thinks.
How can i load the day number, the month date and the year date ?
exemple :
//javascript code
var day = date("dd");
var month=date("mm");
var year = date("yyyy");
Thanlks !
var currDate = new Date();
// getMonth() returns 0 based month
var mm = currDate.getMonth() + 1;
// getDate() returns day of month 1-31
var dd = currDate.getDate();
// getFullYear() returns 4 digit year
var yyyy = currDate.getFullYear();
Steve
Views
Likes
Replies