C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
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
Fomatting Date Using Jquery
WhatsApp
Pankaj Sapkal
Jul 06
2016
721
0
0
<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
Up Next
Fomatting Date Using Jquery