Friday, 12 August 2016

Converting string to Date and DateTime

Use strtotime() on your first date then date('Y-m-d') to convert it back:
$time = strtotime('10/15/2003');

$newformat = date('Y-m-d',$time);

echo $newformat;
// 2003-10-15

1 comment:

  1. Gambling commercials play all the time basis} on the radio and when he watches sports, and the leagues themselves have signed official partnerships with corporations like FanDuel and DraftKings. In 2013, the American Psychiatric Association recategorized playing dysfunction as “similar to substance-related disorders” within the Diagnostic and Statistical Manual of Mental Disorders. But it’s additionally proposed internet gaming dysfunction for potential addition as a definite dysfunction, and cited a necessity for further analysis. GambleAware provide players and their families recommendation and guidance on playing. They provide information and recommendation to encourage accountable playing, both to players and casino operators, and give help to those that might have a playing downside. You can load up the app, check out new methods with out risking any money, after which, after you have it figured out you'll casino.edu.kg be able to|you possibly can} drop some cash and get going for real.

    ReplyDelete

Git merge branch to another branch

$ git checkout develop $ git pull $ git checkout test-branch $ git merge develop $ git push