When I do var_dump() I get this response
object(DateTime)#1 (3) {
["date"]=> string(19) "2003-07-01 13:38:43"
["timezone_type"]=> int(3)
["timezone"]=> string(11) "Asia/Muscat" }
Tell me, please, how I can output parameter date from this object?
you should be able to simply use
Otherwise, look into the
DateTime#formatmethodThis is a little nicer because it allows you to format the output however you’d like.