• 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

IlluminateDatabaseQueryException: SQLSTATE[HY000]: General error: 1 no such table - In clone project

cakephp save drag and drop list order to database

Laravel set default language not working

How do I refresh a DIV content?

str_replace or preg_replace random number from string

Codeigniter, Severity: error --> Exception: Too few arguments to function, admin dashboard shows HTTP error 500

How can I access an array/object?

PHP: How to solve ob_start() in combination imagepng() issue?

Laravel whole batch is cancelled if one Job fails

JSON Render Issue in Date Object Laravel and PHP 7.4

PHP 8.1: strftime() is deprecated

Add bold text and line break into Laravel Notification Email

How to fix bootstrap multiselect search data using ajax

Sentry + Laravel: how to log an already catched Exception?

onKeyUp event calculation not working on the following rows from php generated forms except the first one

About Contact Privacy policy Terms and conditions