Date Time is one of the mostly used information in any web page. Most of the times we need to know the Current Day in number, Current month name & Current Year. Here in this article I will show you how we can achieve Current Day, Current Month name & Current Year from client side using JQuery. To do that we will use getDate() method to get the Current Day in Number, getMonth() method to get the Current Month in number & getFullYear() to get the four digit Year.
JQuery Code Example to Get Current Day Month and Year:
Note: We did not get Month Name directly from JQuery function. getMonth() method return the array index number that’s why we need to add or subtract 1.