• 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 to identify the web server name of remote host

how to loop through json response data using ajax jquery?

I want a way to give path to my files which are outside of public folder in laravel

Maatwebsite Excel 3.1 : how do I skip duplicate data when imported?

HTML + PHP + PHPMAILER

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

GRPC installed successfully on ubuntu but php is looking for it in another folder

Laravel 5 session not persisting after user is logged in

Ajax GET request fails in laravel 8

How to update array value in Laravel

Laravel MSSQL Server Connection not working

Select option menu read from database and use it's values

Confirm Leave on External Links in Wordpress

Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField

PHP Startup: Unable to load dynamic library 'openssl' in Ubuntu

About Contact Privacy policy Terms and conditions