Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
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
Fomatting Date Using Jquery
WhatsApp
Pankaj Sapkal
Jul 06
2016
682
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