Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Get Current Date In DD-Mon-YYY Format In JavaScript/Jquery
WhatsApp
Soumalya Das
Aug 13
2016
3.1
k
0
0
<
script
>
var
m_names
=
new
Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
var
d
=
new
Date();
var
curr_date
= d.getDate();
var
curr_month
=
d
.getMonth();
var
curr_year
=
d
.getFullYear();
document.write(curr_date + "-" + m_names[curr_month] + "-" + curr_year);
</
script
>
Get Current Date
DD-Mon-YYY Format
JavaScript
Jquery
Up Next
Get Current Date In DD-Mon-YYY Format In JavaScript/Jquery