GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
field-date_created.php
Go to the documentation of this file.
1 <?php
2 /**
3  * The default date created field output template.
4  *
5  * @global \GV\Template_Context $gravityview
6  * @since 2.0
7  */
8 
9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10  gravityview()->log->error( '{file} template loaded without context', array( 'file' => __FILE__ ) );
11  return;
12 }
13 
14 $value = $gravityview->value;
15 $field_settings = $gravityview->field->as_configuration();
16 
17 echo GVCommon::format_date( $value, array( 'format' => \GV\Utils::get( $field_settings, 'date_display' ) ) );
if(! isset( $gravityview)||empty( $gravityview->template)) $value
The default date created field output template.
static format_date( $date_string='', $args=array())
Allow formatting date and time based on GravityView standards.
gravityview()
The main GravityView wrapper function.
$field_settings