SineCosine
I'm still looking for my Tangent
- Reaction score
- 77
Ugh, I hate Date objects and I haven't even tried time yet =(
I tried to read up on dates but.. I'm stuck =/
Anyway, here's what I am trying to do:
01) A user posts a message
02) A PHP script creates date using gmdate("F d' y")
03) It stores the date into the MySQL database
However, the date object causes the whole thing to screw up >.<
(I know because removing the date part let everything work fine xD)
Is there a way to convert a Date to a String?
I tried:
I tried to store $gmDate as a varchar, failed, so I tried with the DATE datatype, failed, too.
I hate the date object =/
I tried to read up on dates but.. I'm stuck =/
Anyway, here's what I am trying to do:
01) A user posts a message
02) A PHP script creates date using gmdate("F d' y")
03) It stores the date into the MySQL database
However, the date object causes the whole thing to screw up >.<
(I know because removing the date part let everything work fine xD)
Is there a way to convert a Date to a String?
I tried:
Code:
$Date = gmDate("F d' y");
$String = $Date . ''; //Failed
echo $Date //Works, =/
I tried to store $gmDate as a varchar, failed, so I tried with the DATE datatype, failed, too.
I hate the date object =/