• 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

XAMPP/SQLSRV: Unable to find Sqlsrv in PHPINFO(); - errors coming from connection

Zig-zag scan an N x N array

Assign output of PHP function to a variable

How to install php yaml on CentOs?

Testing subscription renewals on Stripe

image source not readable

Xdebug can't connect back to Docker host

Sort multidimensional array by column value within a column

How to get quarter for future date using Carbon?

Issue saving card for customer

phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO)

MOODLE: What does it mean to aggregate h5p assets?

Laravel 8 factory state afterCreating

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

How to make a foreign key not using primary key

About Contact Privacy policy Terms and conditions