Jump to content

xaban

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

xaban's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you! That did the trick. $tijd[] = '2012-05-23T02:00:00'; $date = new DateTime($tijd[0]); echo $date->format('U');
  2. I have the following script: <?php $tijd[] = '2012-05-23T02:00:00'; $date = new DateTime($tijd[0]); echo $date; ?> However it is not working and resulting in: I think to solve this issue, I have to convert $tijd[0] into a string. Right? If this is correct, how do I do that?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.