LLMS_Date::pretty_date( [date] $date, $type = '' )
Set date to dd/mm/yyyy Optional type value for converting AU date format Converts any type of date format
Contents
Parameters Parameters
- $date
-
([date]) (Required) [datestring]
Return Return
([date]) [datestring]
Source Source
File: includes/class.llms.date.php
31 32 33 34 35 36 37 38 39 | public static function pretty_date( $date , $type = '' ) { if ( 'au' === $type ) { return date ( 'd/m/Y' , strtotime ( $date ) ); } else { return date ( 'm/d/Y' , strtotime ( $date ) ); } } |
Expand full source code Collapse full source code View on GitHub