• 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

Laravel whole batch is cancelled if one Job fails

PHP my timezone is no setting up in PHP.ini File in xampp

How to put php code inside opening and closing shortcodes

Issue with laravel eloquent model property

phpseclib 2.0 can not use Composer to create autoload

Problem with fetching data from database in Laravel

CONCAT columns with Laravel 5 eloquent

Laravel Nova, route not found

How can I get new CSRF token in LARAVEL by using ajax

Can we define variables in `.tpl` files?

What is the function of the (new Date()).getTime() in PHP?

PHPMetrics option --excluded-dirs="myfolder" : myfolder dir is not excluded within docker

Sum array values

Target Laravelista is not instantiable

Attempt to read property "view" on null when sending password reset email

About Contact Privacy policy Terms and conditions