I need to use UK date format (Day Month, Year) and show the day. For example:
Current:Jul 6, 2012
Should be: Fri, 6 Jul, 2012
Thanks in advance!
I need to use UK date format (Day Month, Year) and show the day. For example:
Current:Jul 6, 2012
Should be: Fri, 6 Jul, 2012
Thanks in advance!
// $month = $language->text('base', 'date_time_month_short_' . date('n', $timeStamp));
// $at = $language->text('base', 'date_time_at_label');
if ( $onlyDate )
{
return ( date('y', $timeStamp) === date('y', time()) ) ?
strftime("%a, %e %b", $timeStamp) :
strftime("%a, %e %b '%y", $timeStamp);
}
return ( date('y', $timeStamp) === date('y', time()) ) ?
( $militaryTime ? strftime("%a, %e %b, %H:%M", $timeStamp) : strftime("%a, %e %b, %I:%M%p", $timeStamp) ) :
( $militaryTime ? strftime("%a, %e %b '%y, %H:%M", $timeStamp) : strftime("%a, %e %b '%y, %I:%M%p", $timeStamp) );