classes/fields/datetime.php
public function format_date( $options, $js = false ) {

		switch ( (string) pods_v( static::$type . '_type', $options, 'format', true ) ) {
			case 'wp':
				$format = get_option( 'date_format' );
				if ( $js ) {
					$format = $this->convert_format( $format, array( 'source' => 'php' ) );
				}
				break;
			case 'custom':
				if ( ! $js ) {
					$format = pods_v( static::$type . '_format_custom', $options, '' );
				} else {
					$format = pods_v( static::$type . '_format_custom_js', $options, '' );
					if ( empty( $format ) ) {
						$format = pods_v( static::$type . '_format_custom', $options, '' );
						$format = $this->convert_format( $format, array( 'source' => 'php' ) );
					}
				}
				break;
			default:
				$date_format = $this->get_date_formats( $js );
				$format      = $date_format[ pods_v( static::$type . '_format', $options, 'ymd_dash', true ) ];
				break;
		}//end switch

		return $format;
	}
public function format_date( $options, $js = false ) {

		switch ( (string) pods_v( static::$type . '_type', $options, 'format', true ) ) {
			case 'wp':
				$format = get_option( 'date_format' );
				if ( $js ) {
					$format = $this->convert_format( $format, array( 'source' => 'php' ) );
				}
				break;
			case 'custom':
				if ( ! $js ) {
					$format = pods_v( static::$type . '_format_custom', $options, '' );
				} else {
					$format = pods_v( static::$type . '_format_custom_js', $options, '' );
					if ( empty( $format ) ) {
						$format = pods_v( static::$type . '_format_custom', $options, '' );
						$format = $this->convert_format( $format, array( 'source' => 'php' ) );
					}
				}
				break;
			default:
				$date_format = $this->get_date_formats( $js );
				$format      = $date_format[ pods_v( static::$type . '_format', $options, 'ymd_dash', true ) ];
				break;
		}//end switch

		return $format;
	}
public function format_date ( $ options , $ js = false ) { switch ( ( string ) pods_v ( static :: $ type . '_type' , $ options , 'format' , true ) ) { case 'wp' : $ format = get_option ( 'date_format' ) ; if ( $ js ) { $ format = $ this -> convert_format ( $ format , array ( 'source' => 'php' ) ) ; } break ; case 'custom' : if ( ! $ js ) { $ format = pods_v ( static :: $ type . '_format_custom' , $ options , '' ) ; } else { $ format = pods_v ( static :: $ type . '_format_custom_js' , $ options , '' ) ; if ( empty ( $ format ) ) { $ format = pods_v ( static :: $ type . '_format_custom' , $ options , '' ) ; $ format = $ this -> convert_format ( $ format , array ( 'source' => 'php' ) ) ; } } break ; default : $ date_format = $ this -> get_date_formats ( $ js ) ; $ format = $ date_format [ pods_v ( static :: $ type . '_format' , $ options , 'ymd_dash' , true ) ] ; break ; } //end switch return $ format ; }
Build date format string based on options

@since 2.7.0

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

@return string
Build date format string based on options