• 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

Laravel You requested 1 items, but there are only 0 items available

Wordpress wpdb->delete issue

Implode columnar values between two arrays into a flat array of concatenated strings

How can i hide dt if dd got empty value

Laravel UUID generation

Woocommerce redirect after add-to-cart error

ORA-12546: TNS:permission denied error connection to remote oracle server

How to loop a tree array with unknown depth and get array blocks?

Toggle between a textbox and a select using PHP

How to submit the custom form data in database in WordPress without plugin using ajax?

Laravel Carbon get start + end of last week?

Post Form Data To phpmyadmin Database

MySQL - Connection failed: No route to host

How do I remove this delivery notification from here?

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'posts.post' doesn't exist

About Contact Privacy policy Terms and conditions