• 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

Cross-Origin Resource Sharing (CORS) witth Laravel and Vuejs

I need to link Google Sheet with my Laravel

Display a product custom field only in WooCommerce Admin single orders

Laravel 4 Redirect::back() not going to previous page (refreshing current page)

storagelogs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

Upload a file Using PHP and JavaScript

How to get array values using foreach in laravel

Error Class "LaravelFortifyFeatures" not found

How to Make Laravel Eloquent "IN" Query?

GRPC installed successfully on ubuntu but php is looking for it in another folder

How to set time with DateTime modify?

Laravel get user data with profile

Laravel unique validation on multiple columns

PHP - Check if string contains words longer than 4 characters, then include "+ *", and for those shorter than 4 characters include only "*"

Put content of wordpress page inside div

About Contact Privacy policy Terms and conditions