PHP convert datetime to integer.

Discussion in 'PHP' started by kmelody5185, Feb 23, 2009.

  1. #1
    What the php function to convert datetime to integer?
     
    kmelody5185, Feb 23, 2009 IP
  2. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #2
    
    $yourdatetime = '2009-08-21 1.45 PM';
    $timestamp = strtotime($yourdatetime);
    
    PHP:
    - ads2help
     
    ads2help, Feb 23, 2009 IP