• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Laravel Carbon throws error The format separator does not match

phplaraveldatedatetimelaravel-5


PHP Snippet 1:

date("D d M", strtotime("2017-02-09 18:30:00"));
//outputs "Thu 09 Feb"

date("D d M", strtotime($matchArr['matchTime']);

PHP Snippet 2:

date('l j F', strtotime($matchArr['matchTime']))

PHP Snippet 3:

Carbon::createFromFormat('Y-m-d H:i:s', '2017-02-09 18:30:00');

Related Snippets

How can I get user id from session in javascript?

How to access a var with "-" in PHP [duplicate]

PHP: Print caught exception like Xdebug

Issue saving card for customer

Using PHP to connect to a remote MSSQL database

SQL AVG() to 2 decimals

Two buttons one form

Laravel MSSQL Server Connection not working

Laravel You requested 1 items, but there are only 0 items available

SQLSTATE[HY000]: General error: 1 table posts has no column named *

carbon generated datetime not stored correctly into the database

Fatal error: [] operator not supported for strings

How to change HTML structure inside WP <head>

Laravel Model save() & update() Not Saving

How to get quarter for future date using Carbon?

About Contact Privacy policy Terms and conditions