dimanche 20 avril 2014

Converting isotime to shorttime in javascript


Vote count:

0




I have a ajax call which returns a time e.g 16:06:59 i want to convert it to 4:06 PM


var mydate = obj[0].time ; mydate comes 16:06:59 but when i try to use it with var date = new Date()


it gives me todays date .


Is there any solution to realize what i want ?


Thanks



asked 20 secs ago






Aucun commentaire:

Enregistrer un commentaire