You are here

function availability_calendar_format_display_date in Availability Calendars 7.3

Same name and namespace in other branches
  1. 7.5 availability_calendar.inc \availability_calendar_format_display_date()
  2. 7.4 availability_calendar.inc \availability_calendar_format_display_date()

Formats a date according to the - possibly localized - 'Availability Calendar date display' date type.

Parameters

DateTime $date:

Return value

string

1 call to availability_calendar_format_display_date()
availability_calendar_booking_formlet_form in booking_formlet/availability_calendar_booking_formlet.module

File

./availability_calendar.inc, line 196
General helper methods for Availability Calendar

Code

function availability_calendar_format_display_date($date) {
  $date_type = 'availability_calendar_date_display';
  return format_date($date
    ->getTimestamp(), $date_type);
}