I got it but say if the date is stored in string mm-dd-yyyy and want to convert it into dd-mm-yyyy form, can this be done in DB2
for example take this Query
select tp.PROJECT_ID id
from expenses as tp
where cast(tp.UPDATED_ON as char) >= cast(CURRENT DATE - 1 as char)
and cast(tp.UPDATED_ON as char) <= cast(CURRENT DATE as char);
How do i check this conditions, and UPDATE_ON is a TIMESTAMP datatype.