• 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

VichUploaderBundle error "Expected argument of type "File", "NULL" given" when submitting the form without selecting any file

Unable to match results of php hash_hmac() and coldfusion hmac()

Laravel excel maatwebsite 3.1 import, date column in excel cell returns as unknown format number. How to solve this?

How to break out of a foreach once a condition is met?

How to Generate PDF invoice to XML format using mPDF

Unable to guess the mime type as no guessers are available Laravel 5.2

virtctl works when executed via command line but not from php exec()

Guzzle Not Sending Grant Type to Laravel Passport

Could not decode a text frame as UTF-8.

Laravel 5 issue with wherePivot

How to delete old images from public folder on update using Laravel

Convert date and time to Jalali in Laravel

Install mysql client in docker image

I can't delete my image when it is liked because of the foreign key in mysql

Laravel relationship belongsToMany with composite primary keys

About Contact Privacy policy Terms and conditions