I have a datevariable, I would like to have convert it to first day of its monh,
SQL> select to_date('31/07/2010', 'DD/MM/YYYY') from dual; TO_DATE(' --------- 31-JUL-10 SQL> select trunc(to_date('31/07/2010', 'DD/MM/YYYY'), 'MM') from dual; TRUNC(TO_ --------- 01-JUL-10 SQL>