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


Parameters Parameters

$date

([date]) (Required) [datestring]


Top ↑

Return Return

([date]) [datestring]


Top ↑

Source Source

File: includes/class.llms.date.php

	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 ) );
		}

	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.