simcal_get_date_format_order

Get day, month, year order in a datetime format string.

Description

(array) simcal_get_date_format_order( (string) $date_format ); 

Returns an array with d, m, y for keys and a order number. If either d, m, y is not found in date format, order value is false.

Returns (array)

Parameters (1)

0. $date_format (string)
The date format.

Usage

  1. if ( !function_exists( 'simcal_get_date_format_order' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'simple-calendar/includes/functions/shared.php'; 
  3.  
  4. // The date format. 
  5. $date_format = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = simcal_get_date_format_order($date_format); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/functions/shared.php