Hi All ,
May/ 23/2015 presently i display This type of Date format , But I need Small Change Month Name Replaced With Number , Please Give Suggestions Very Urgent.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ravi KumarRank #2,085 · 690 reputationPosted Dec 26, 2015, 2:38 AM EST
Venkata SubbareddyRank #2,083 · 691 reputationPosted Dec 26, 2015, 2:53 AM EST
Ranjit Kanojia59 reputationPosted Dec 27, 2015, 9:10 PM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Dec 27, 2015, 9:19 PM EST
function getMonthFromString(mon){ return new Date(Date.parse(mon +" 1, 2012")).getMonth()+1 }function getMonthFromString(mon){ var d = Date.parse(mon + "1, 2012"); if(!isNaN(d)){ return new Date(d).getMonth() + 1; } return -1; }Ravi KumarRank #2,085 · 690 reputationPosted Dec 27, 2015, 10:43 PM EST