Meltem Demirkus wrote: > Hi, > > Is there any function which returns the day , month or year of a > date ?
You need two functions actually ;-)) use the date() function to generate the day, month or year from a timestamp use the strtotime() function to generate a timestamp from a date For example <? echo date( 'd', strtotime( '2002-03-26' ) ); // prints 26 ?> HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

