setDate(1990, 3, 15); // Output the date select fields echo $date->format('l, F j, Y'); echo "This code example creates select fields for the month, day, and year and sets the default date to March 15, 1990. The package library used in this example is the PHP Date/Time library.
"; echo $date->format('g:i a'); echo "
"; echo ""; echo " "; echo ""; echo ", "; echo ""; ?>