• 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

PHP and WebView - Cookie doesn't are the same

Mysqli multi query error

Issue with laravel eloquent model property

Add and update products to session cart in Laravel

Show rotation of tweets using current day of month

mysql slow on updates for a well optimized query

Input and output values for php into the browser?

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

TesseractOCR not working for Laravel

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

Detect a fetch request in PHP

mysql_result is defined but mysql_free_result warns it expected a resource

MySQL - Connection failed: No route to host

PHP date() with timezone?

Symfony redirect if already loggedin from login page

About Contact Privacy policy Terms and conditions