Skip to content

Instantly share code, notes, and snippets.

@batuhan
Created August 1, 2011 14:35
Show Gist options
  • Save batuhan/1118246 to your computer and use it in GitHub Desktop.
Save batuhan/1118246 to your computer and use it in GitHub Desktop.
convert time (broken)
<?php
error_reporting(E_ALL);
//second test
$zaman = 'Fri, 01 Jul 2011 16:24:27 +0000';
$dateResult = date( 'y-m-d', strtotime($zaman) );
echo $dateResult;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment