MySQL Forums
Forum List  »  General

DateTime to string problem???
Posted by: r4m1r3z
Date: March 09, 2005 04:19AM

DateTime lastLogon=row.lookup_by_name("LogonTime");
query<<"SELECT * FROM Posts WHERE CreationTime>%0q";
query.parse();

Template query is set, so when i execute it it works just fine (in this case):
result=query.store(SQLString("2005-03-03 12:00:00"));

But that's not what i want, I don't want to pass date & time as a string, I wanna pass it as DateTime object lastLogon but don't know how to convert it...

result=query.store(SQLString(lastLogon)); //this doesn't work

Options: ReplyQuote


Subject
Written By
Posted
DateTime to string problem???
March 09, 2005 04:19AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.