• 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) How to delete multiple models including optional relationships?

Transpose and flatten multiple rows of array data [duplicate]

Inserting Country Selection into MySQL PHP [duplicate]

Stop caching for PHP 5.5.3 in MAMP

Unable to guess the mime type as no guessers are available Laravel 5.2

Composer Warning: openssl extension is missing. How to enable in WAMP

Match single unknown parameter php (Morse-code Regex)

javascript html popup window

enroll_table three field fetch to payment form to create payment field in laravel 5.5

Error Class "LaravelFortifyFeatures" not found

How to use $this->session->set_userdata in codeigniter

How to trim a video by 4 fragments to 4 seconds using the PHP-FFMpeg?

Symfony redirect if already loggedin from login page

Laravel - Implicit route model binding with soft deleted data

How to implement placeholder in a php file for moodle plugin?

About Contact Privacy policy Terms and conditions