how convert milisecond back to date format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hiteshrane
    New Member
    • Jun 2007
    • 1

    how convert milisecond back to date format

    Can anybody tell me how to convert milisecond back to date format, the date is converted to milisecond by using mktime function.
  • epots9
    Recognized Expert Top Contributor
    • May 2007
    • 1352

    #2
    if your code is like this:
    [PHP]
    $mil = mktime();
    [/PHP]

    this will do the trick:
    [PHP]
    $mil = mktime();
    print date("Y-m-d", $mil);
    [/PHP]

    Comment

    Working...