TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Get Current Date In DD-Mon-YYY Format In JavaScript/Jquery
Soumalya Das
Aug 13
2016
Code
3.1
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<
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