Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get date, month and year from a complete date?
#1
new Date() will give the complete current date with time..

var today = new Date();
var today1=today.getFullYear()+'-'+(today.getMonth() + 1)+'-'+today.getDate();
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)