• 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

Composer Warning: openssl extension is missing. How to enable in WAMP

Laravel print last executed SQL query with Query log

I want to display a sweetalert after the inserting of data in my database

Match csv filenames to table names and import

Must be of the type array, null given,

Laravel - How to properly generate unique slugs from article titles?

Hide specific products from unlogged users based in product category in WooCommerce

I cannot create a auto generated date time in mysql workbench

Sync Records With Default Values in Pivot Tables, Call to undefined method syncWithPivotDefaults()

MySQL/PHP - Web Based Game -User specific inventory table or 1 giant table? Another option?

add " ? " in url via htaccess RewriteRule

How To Access A Column In M-M Relationship Table In Laravel

How to extract price from given url using Xpath?

PHP Warning: Module already loaded in Unknown on line 0

Issue with laravel eloquent model property

About Contact Privacy policy Terms and conditions