Greatly expanded the CSV routine.

This commit is contained in:
James Cole
2015-07-05 06:18:02 +02:00
parent d2c018f7da
commit 65122f0144
22 changed files with 1282 additions and 210 deletions

View File

@@ -0,0 +1,33 @@
<?php
/**
* Created by PhpStorm.
* User: sander
* Date: 05/07/15
* Time: 05:49
*/
namespace FireflyIII\Helpers\Csv\Converter;
use Carbon\Carbon;
use Session;
/**
* Class Date
*
* @package FireflyIII\Helpers\Csv\Converter
*/
class Date extends BasicConverter implements ConverterInterface
{
/**
* @return Carbon
*/
public function convert()
{
$format = Session::get('csv-date-format');
$date = Carbon::createFromFormat($format, $this->value);
return $date;
}
}