function date_format_item in Date 5
Use the Date API to return the formatted value for a date object.
Parameters
object $date - a date object:
string $format - the date format string:
string $format_db_type - the part of the date object to format, can be 'local' or 'db':
string $append - a string to append to the end of the formatted date:
Return value
the formatted date value
1 call to date_format_item()
- theme_date_formatter in ./
date.module - Theme date formatter.
File
- ./
date.module, line 438 - Defines a date/time field type.
Code
function date_format_item(&$date, $format, $format_db_type = 'local', $append = '') {
include_once drupal_get_path('module', 'date_api') . '/date.inc';
return date_show_date($date, $format, $format_db_type, $format_zone) . $append;
}