• 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

How to get AJAX to post on second page?

Vimeo API: how to save a vimeo into a subfolder?

Laravel Route issues with Route order in web.php

How to create a video stream from a single dynamic image in PHP

send email using gmail-api and google-api-php-client

Laravel : How to Create Dropdown to Select FOREIGN KEY from Other Table?

onKeyUp event calculation not working on the following rows from php generated forms except the first one

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

Adding multiple items to WooCommerce cart at once

Laravel set default language not working

Using spatie/media-library, how to rename a collection of uploaded files?

Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in

Symfony 4: how to allow dynamic values for array nodes in bundle configuration?

Laravel Nova, route not found

Insert multidimensional array to codeigniter cart

About Contact Privacy policy Terms and conditions