• 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

Inserting Country Selection into MySQL PHP [duplicate]

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

Make Shipping Method fields Mandatory on Woocommerce checkout page

Laravel Carbon get start + end of last week?

HTML + PHP + PHPMAILER

Laravel: HTML in notification

Laravel query builder binding parameters more than once

Last order would be re-order in wooCommerce. How is it possible?

Can't exclude directories from .htaccess mobile redirect?

How to fix bootstrap multiselect search data using ajax

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

Get lat/lon from google maps url ftid (hex)

How can I convert from a{a{} b{}} to a[a[],b[]] using php preg_match?

enroll_table three field fetch to payment form to create payment field in laravel 5.5

Webscraping Symfony/Panther: Can't get HTML

About Contact Privacy policy Terms and conditions