Mails, Strono, filter
This commit is contained in:
parent
f53f17f9c1
commit
62e84637b6
99 changed files with 2409 additions and 474 deletions
|
|
@ -29,6 +29,14 @@ class Util
|
|||
return 'd.m.Y - H:i';
|
||||
}
|
||||
|
||||
public static function _format_date($date, $to = 'date'){
|
||||
if($to === 'datetime'){
|
||||
return \Carbon::parse($date)->format(\Util::formatDateTimeDB());
|
||||
}
|
||||
//date
|
||||
return \Carbon::parse($date)->format(\Util::formatDateDB());
|
||||
}
|
||||
|
||||
public static function _format_number($value){
|
||||
return preg_replace("/[^0-9,]/", "", $value);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue