Date

Generates a single-line text field with a built-in datepicker widget

Return Value

(string) The date, in YYYY-MM-DD format

Template Usage

Output the raw date, e.g. 2015-10-31

<?php
echo CFS()->get( 'my_date' );

Output a formatted date, e.g. October 31, 2015

<?php
echo date( 'F j, Y', strtotime( CFS()->get('my_date') ) );