Search found 1 match
- Wed Jun 23, 2010 1:38 am
- Forum: PHP - Code
- Topic: get day out of datetime
- Replies: 2
- Views: 114
get day out of datetime
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 some...