SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Jun 2005
    Posts
    286
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Convert DateTime to UnixTimeStamp??

    I've date in "mm/dd/yyyy hh:mm:ss" format.

    How can I convert it into UnixTimeStamp??
    [COLOR=SlateGray]
    Web Developer @ VeriQual

  2. #2
    SitePoint Enthusiast XRay's Avatar
    Join Date
    Aug 2006
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    check for mktime function

  3. #3
    SitePoint Addict ruba's Avatar
    Join Date
    Apr 2005
    Location
    Amman -Jordan
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Open Blocked website
    Open Blocked Website
    Knowledge Is Knowing That A Tomato Is A Fruit,
    Wisdom Is Not Putting It In A Fruit Salad.

  4. #4
    SitePoint Wizard
    Join Date
    Dec 2004
    Location
    At My Desk!!
    Posts
    1,642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    <?php

    $date 
    21/03/2007

    $datearry 
    explode('/'$date);

    $newdate mktime(0,0,0,$datearray[1],$datearray[0],$datearray[2]);

    echo 
    $newdate;

    ?>
    "Am I the only one doing ASP.NET in Delphi(Pascal)?"


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •