Yii Framework Forum: from unix time to date - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

from unix time to date convertion

#1 User is offline   cmkalluri 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 03-May 11

Posted 04 May 2011 - 12:08 AM

hi plz.anybody help me regrading from unix time and date to normal date in humanreadable date
plz help..........................
0

#2 User is offline   Srinivasan A Paul Joseph 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 05-December 08
  • Location:Washington D.C

Posted 04 May 2011 - 09:59 AM

If you have the unix timestamp in as a string in $time variable for example, you can just do this: date("d M Y", strtotime($time));
With Warm Wishes,

Srinivasan A Paul Joseph
http://www.sripauljoseph.com/
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users