Find day of date using JQuery -


How do I get a date given using jQuery? In C # I like it

  if (Modet. Dieoff week == Dayoff vC.)  

How can I do this in jQuery? Am I

You get javascript date .getDay ()

  $ (document) ) You can use. Ready (function () {var d = New date (); Warning (d.getDay ());});  

As stated that you do not need jQuery to use it, but I've wrapped it in jQuery for your happiness. As nc3b said, the result is on 0 base where 0 is Sunday.


Comments