• 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

Return multiple values from a function using mysqli_fetch_assoc [closed]

How can I make Laravel return a custom error for a JSON REST API

Edit product hook WooCommerce

RabbitMQ PRECONDITION_FAILED - unknown delivery tag

enable Apache http Authorization header

Check if user online laravel

Laravel lang slug in url

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

How to Make Laravel Eloquent "IN" Query?

How do I call Validator from a namespace with an already existing Validator class

Log a user out of a website when they put their computer to sleep

Fatal error: Uncaught Error: Call to undefined method mysqli_stmt::fetch_assoc() [duplicate]

How to prevent phpmailer sending embedded image as an attachment on Gmail?

How Can I Do LIMIT 1, 2 In WP_Query

Check if user online laravel

About Contact Privacy policy Terms and conditions