-2

I need to get current date with format like this:

Thursday, APR. 9, 2015

How can I do this?

ferocesalatino
  • 126
  • 1
  • 9

1 Answers1

1

There are 4 ways of instantiating a Date object in java script:

new Date() new Date(milliseconds) new Date(dateString) new Date(year, month, day, hours, minutes, seconds, milliseconds)

*Using new Date(), creates a new date object with the current date and time

I think that the last one is probably the one that you would be wanting to use. There is a lot of documentation that you could have searched to help find this, specifically "W3schools". That is a great beginner (and even not beginner) go to site for things like this. Check out this Information about the date class that you need.

I hope this helps!

Kleigh
  • 424
  • 3
  • 12