• 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

What is the difference between client-side and server-side programming?

Laravel display validation error

zsh: command not found: php

Laravel UUID generation

How to use $this->session->set_userdata in codeigniter

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

Merge key and value of array index [duplicate]

PHP - Store information with NO database

Post Form Data To phpmyadmin Database

PHP - CURL using HTTPS [closed]

Split a string array into pieces

How to install LDAP in Docker php-fpm alpine

PHP contact form configuration [duplicate]

Laravel query builder binding parameters more than once

How to test a php login connected to a mysql db through xampp?

About Contact Privacy policy Terms and conditions