Skip to content

Instantly share code, notes, and snippets.

@Williammer
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save Williammer/bba0309c721ddf131e64 to your computer and use it in GitHub Desktop.

Select an option

Save Williammer/bba0309c721ddf131e64 to your computer and use it in GitHub Desktop.
php.useDate.php - by far the most convenient date method I used in php.
//get certain date.
$date_case = strtotime('+1 month', strtotime('201405071011'));
$month_later = date('YmdHi', $date_case);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment