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
Fomatting Date Using Jquery
Pankaj Sapkal
Jul 06
2016
Code
621
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<span
class
=
"date"
>08-Aug-2012</span>
<span
class
=
"date"
>2012/08/Aug</span>
<span
class
=
"date"
>Monday, August 08, 2012</span>
$(document).ready(function () {
$(
'span.date'
).each(function() {
var dateFormat = $(
this
).text()
var dateFormat = $.datepicker.formatDate(
'yymm'
,
new
Date(dateFormat));
//alert(dateFormat);
$(
this
).html(dateFormat +
"<br>"
);
});
});
Fomatting Date
Jquery