Returns:
-
Integer
A timestamp representing the date selected (0 if none provided).
-
String
A formatted date string if the format parameter is provided
Returns either a timestamp value of the selected date, or a formatted string representing the date if the format argument is provided. Accepts the standard format strings accepted by the PHP date function, and also the enhanced format strings available in the WOOF::format_date method.
Parameters:
-
A format string that supports the same formatting characters as the PHP date function, and the formattng tokens supported by the WOOF::format_date method