• 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

What will the best solution for this multiple optional filter?

WooCommerce Additional Information - if empty, hide

Get sum of arrays inside array

How to test a php login connected to a mysql db through xampp?

How in Laravel run JavaScript code stored in php variable?

Clients authentication and user authentication with laravel

OctoberCMS / Anonymous Global Scope

(Laravel) How to delete multiple models including optional relationships?

PHP Download MP3 files from directory on server

Getting error: CodeIgniterDatabaseBaseResult::getResult in CodeIgniter

PHP -> Next nearest date defined by array of days in week

xdebug 3 not working in ubuntu 20.04 with docker

Sagepay Error The Vendor failed to provide a RedirectionURL

Why "Class 'GuzzleHttpClient' not found" even after Installing it in Laravel?

How to install PHP composer inside a docker container

About Contact Privacy policy Terms and conditions