SQL dates

Im having difficulty echo dates whether i insert them or use php date, how would i echo dates i cant find much info on that

do you mean how do your retrieve the date from your database? simple SELECT query.

if you want to echo a date just put.

[php]echo date(‘d-m-Y’);

//this shows ex 01-12-2012, changing the case on the letters changes their output except Y(year)[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service