• 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

Add New Parameter to Existing URL using htaccess

google content api for shopping

Creating Combinations of Elements

How to add a sidebar to Woocommerce Shop Page?

Get orders by date and status woocommerce

RuntimeException: Unable to create the cache directory (/var/www/sonata/app/cache/dev)

Malformed MIME header error in Symfony 5.3

Shortcode or PHP inside a shortcode in Wordpress

PHP date() with timezone?

WHERE IN array binding in DB::raw laravel 5.4

Laravel websockets AWS EC2 - Connection failed

Laravel Database Strict Mode

How to extract price from given url using Xpath?

How to solve cURL error 60: SSL certificate in Laravel 5 while Facebook authentication

Display a success custom notice after Placing an Order in WooCommerce

About Contact Privacy policy Terms and conditions