You are here

function uc_date_format in Ubercart 7.3

Same name and namespace in other branches
  1. 5 uc_store/uc_store.module \uc_date_format()
  2. 6.2 uc_store/uc_store.module \uc_date_format()

Formats a date value for display.

Parameters

$month: Numerical month value.

$day: Numerical day value.

$year: Numerical year value.

Return value

String containing formattted date, using the 'uc_store' date format.

2 calls to uc_date_format()
uc_payment_method_cod in payment/uc_payment_pack/uc_payment_pack.module
Payment method callback for the "Cash on Delivery" payment method.
uc_payment_pack_receive_check_form_submit in payment/uc_payment_pack/uc_payment_pack.admin.inc
Submit handler for uc_payment_pack_receive_check_form().

File

uc_store/uc_store.module, line 1087
Contains global Ubercart functions and store administration functionality.

Code

function uc_date_format($month, $day, $year) {
  $time = strtotime($month . '/' . $day . '/' . $year);
  return format_date($time, 'uc_store');
}