Today's Date | Sololearn: Learn to code for FREE!


Today's Date

How to get today's date using jQuery?

7/5/2017 3:04:37 AM


7 Answers

New Answer


JQuery use JS to run... when you write 'JQuery code' it's JS code usinf the JQuery library... So, everything you can do without JQuery, you can also do them with it :P


JQuery doc' wrote: << The $.now() method is a shorthand for the number returned by the expression (new Date).getTime(). >> W3School wrote: << Return the number of milliseconds since 1970/01/01 >> Same return too as If you want another format, look at methods of Date object:


u can do it without jquery :< console.log(new Date())


Javascript should be preferable method, if you can do it in Javascript easily, like today = new Date();


No need to use JQuery. Here's a jsfiddle example:


is it possible to do it with JQUERY ?


I use var time = $ .now() but the result is not as I want