postgresql7.3 select to_char(now(),'YYYY-MM-DD') from dual