get day out of datetime
Posted: Wed Jun 23, 2010 1:38 am
hello,
I'm trying to get the "day" out of a datetime, eg. 2010-06-21 10:00:00... where I want to get a variable containing "21".
As I'm new to PHP I can't get this done, although it seems to be a quite easy function, not?
function get_day($givendatetime) {
$getday = ; // can someone help me with the code i have to put in this line?
return $getday;
}
Any help is very much appreciated!
grtz,
F.
I'm trying to get the "day" out of a datetime, eg. 2010-06-21 10:00:00... where I want to get a variable containing "21".
As I'm new to PHP I can't get this done, although it seems to be a quite easy function, not?
function get_day($givendatetime) {
$getday = ; // can someone help me with the code i have to put in this line?
return $getday;
}
Any help is very much appreciated!
grtz,
F.