classes/fields/datetime.php
public function get_date_formats( $js = false ) {

		$date_format = array(
			'mdy'       => 'm/d/Y',
			'mdy_dash'  => 'm-d-Y',
			'mdy_dot'   => 'm.d.Y',
			'dmy'       => 'd/m/Y',
			'dmy_dash'  => 'd-m-Y',
			'dmy_dot'   => 'd.m.Y',
			'ymd_slash' => 'Y/m/d',
			'ymd_dash'  => 'Y-m-d',
			'ymd_dot'   => 'Y.m.d',
			'dMy'       => 'd/M/Y',
			'dMy_dash'  => 'd-M-Y',
			'fjy'       => 'F j, Y',
			'fjsy'      => 'F jS, Y',
			'y'         => 'Y',
		);

		$filter = 'pods_form_ui_field_date_formats';

		if ( $js ) {
			// @todo Method parameters? (Not supported by array_map)
			$date_format = array_map( array( $this, 'convert_format' ), $date_format );

			$filter = 'pods_form_ui_field_date_js_formats';
		}

		return apply_filters( $filter, $date_format );
	}
public function get_date_formats( $js = false ) {

		$date_format = array(
			'mdy'       => 'm/d/Y',
			'mdy_dash'  => 'm-d-Y',
			'mdy_dot'   => 'm.d.Y',
			'dmy'       => 'd/m/Y',
			'dmy_dash'  => 'd-m-Y',
			'dmy_dot'   => 'd.m.Y',
			'ymd_slash' => 'Y/m/d',
			'ymd_dash'  => 'Y-m-d',
			'ymd_dot'   => 'Y.m.d',
			'dMy'       => 'd/M/Y',
			'dMy_dash'  => 'd-M-Y',
			'fjy'       => 'F j, Y',
			'fjsy'      => 'F jS, Y',
			'y'         => 'Y',
		);

		$filter = 'pods_form_ui_field_date_formats';

		if ( $js ) {
			// @todo Method parameters? (Not supported by array_map)
			$date_format = array_map( array( $this, 'convert_format' ), $date_format );

			$filter = 'pods_form_ui_field_date_js_formats';
		}

		return apply_filters( $filter, $date_format );
	}
public function get_date_formats ( $ js = false ) { $ date_format = array ( 'mdy' => 'm/d/Y' , 'mdy_dash' => 'm-d-Y' , 'mdy_dot' => 'm.d.Y' , 'dmy' => 'd/m/Y' , 'dmy_dash' => 'd-m-Y' , 'dmy_dot' => 'd.m.Y' , 'ymd_slash' => 'Y/m/d' , 'ymd_dash' => 'Y-m-d' , 'ymd_dot' => 'Y.m.d' , 'dMy' => 'd/M/Y' , 'dMy_dash' => 'd-M-Y' , 'fjy' => 'F j, Y' , 'fjsy' => 'F jS, Y' , 'y' => 'Y' , ) ; $ filter = 'pods_form_ui_field_date_formats' ; if ( $ js ) { // @todo Method parameters? (Not supported by array_map) $ date_format = array_map ( array ( $ this , 'convert_format' ) , $ date_format ) ; $ filter = 'pods_form_ui_field_date_js_formats' ; } return apply_filters ( $ filter , $ date_format ) ; }
Get the date formats.

@since 2.7.0

@param  bool $js Whether to return format for jQuery UI.

@return array
Get the date formats .