Hi everybody
All i want to do is to read from a table a datetime field which has the following format:
DateTime
28/12/2000 07:55:00
All i want to do is to select only the Date Information and
compare it to the todays date.
If they are equal then i want to print a small image.
Im using this:
If left(DateTime,10) = Date then
Response.Write "<td><img SRC=../images/tick.gif></td>"
else
Response.Write "<td><img SRC=../images/cross.gif></td>"
end if
oRecord.Close
If i Response.Write the: <left(DateTime,10)> returns me the date which i want to use.
But when im comparing this with DATE is not working properly.
I don't have a clue y.
Anybody can help me please
))))))))))))))))))))))))
All i want to do is to read from a table a datetime field which has the following format:
DateTime
28/12/2000 07:55:00
All i want to do is to select only the Date Information and
compare it to the todays date.
If they are equal then i want to print a small image.
Im using this:
If left(DateTime,10) = Date then
Response.Write "<td><img SRC=../images/tick.gif></td>"
else
Response.Write "<td><img SRC=../images/cross.gif></td>"
end if
oRecord.Close
If i Response.Write the: <left(DateTime,10)> returns me the date which i want to use.
But when im comparing this with DATE is not working properly.
I don't have a clue y.
Anybody can help me please