Results 1 to 2 of 2

Thread: [resolved] Translate date ("d.m.Y H:i:s") into timestamp

  1. #1

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    [resolved] Translate date ("d.m.Y H:i:s") into timestamp

    How can I get a unix timestamp from a german date-time combination? Input format is "d.m.Y H:i:s", strtotime doesn't seem to get through.
    Last edited by Fox; Jun 4th, 2003 at 04:46 PM.

  2. #2

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    For those who were interested:

    PHP Code:
    list( $d$m$Y$H$i$s ) = split'[. :]'$datum );
    $result mktime"$H""$i""$s""$m""$d""$Y); 

Posting Permissions

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



Click Here to Expand Forum to Full Width