hello all, i am having problem on how to compare todays date and date in my table.
i just want to select the date which is with format YYYY-MM-DD but in my oposted_date field is stored timestamp date - '003-03-11 14:29:34+08'
my query is :
dateString='2003-03-24';
String query=" select id, oposted_date from offer where oposted_date='"+dateString+"' ";
can anybody give me a suggestion on how to make oposted_date same formate as dateString ?
thanx in advance..
i just want to select the date which is with format YYYY-MM-DD but in my oposted_date field is stored timestamp date - '003-03-11 14:29:34+08'
my query is :
dateString='2003-03-24';
String query=" select id, oposted_date from offer where oposted_date='"+dateString+"' ";
can anybody give me a suggestion on how to make oposted_date same formate as dateString ?
thanx in advance..