Sample Functions


Dates

Dates are tricky little things. We show dates as day-month-year, US as month-day-year, and databases want them as year-month-day

PHP scripts embedded in a page use <?php and ?> tags to indicate a script
PHP uses echo command to display the result on the page.
This date though is based on the server date and time. So a longer script is needed.