Skip to content

Instantly share code, notes, and snippets.

@yogeshdubey2006
Last active December 29, 2018 11:10
Show Gist options
  • Save yogeshdubey2006/0a4c6b87dba44882cd6f1a12f5d57bf1 to your computer and use it in GitHub Desktop.
Save yogeshdubey2006/0a4c6b87dba44882cd6f1a12f5d57bf1 to your computer and use it in GitHub Desktop.
Useful PHP code
<?php
// To split the date and time from datetime value
$date = strtotime('10/29/2018 10:54:15 PM');
$dat = date('m/d/y', $date);
$tme = date('H:m:s A',$date);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment