If knowledge is power, then sharing knowledge is ultimate powertrip
You are here: Home >> Tag Archives: Date

Tag Archives: Date

Feed Subscription

Convert PHP date to javascript date

We can convert PHP date to javascript date as; var dateStr=”2011-08-03 09:15:11″; //returned from mysql timestamp/datetime field var a=dateStr.split(” “); var d=a[0].split(“-“); var t=a[1].split(“:”); var date = new Date(d[0],(d[1]-1),d[2],t[0],t[1],t[2]); Read More »

Scroll To Top