I have a text item in which date return from calender in formate like dd/mm/yyyy now i want to convert this formate to dd-mon-yyyy in javascript...How i can do this.?
irfan_4
0
Newbie Poster
Recommended Answers
Jump to PostInDate='20/10/2014'; // Example Items=InDate.split('\/'); Months=new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); OutDate=Items[0]+'-'+Months[Items[1]-1]+'-'+Items[2];
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.