• 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

Why i get wrong output for html markdown?

strpos(): Argument #1 ($haystack) must be of type string, array given

What is the function of the (new Date()).getTime() in PHP?

Convert date and time to Jalali in Laravel

Add New Parameter to Existing URL using htaccess

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

Manage independently the decimal number of the price of each product [duplicate]

how to identify the web server name of remote host

Adding custom body class to the custom archive pages

Inserting Country Selection into MySQL PHP [duplicate]

Laravel PackageManifest.php: Undefined index: name

How to install PHP composer inside a docker container

Failing validation doesn't stop code execution in livewire component

WHM Enabling mod_rewrite

Exact alternate to mcrypt_encrypt in PHP 7.2

About Contact Privacy policy Terms and conditions