Add current system time to custom date(any date)

if you want to add the current system time with your custom date , use the following sample to do it. you can also customize it your requirement accordingly. 






select process_date,
 to_date(to_char(process_date,'dd/mm/yyyy')||TO_CHAR(sysdate, 'HH:MI:SS'),'dd/mm/yyyy HH:MI:SS')
 from T_BATCH_OPT where    schedule_id=3329 and rownum=1;

SELECT to_date('10/12/2014'||TO_CHAR(sysdate, 'HH:MI:SS'),'dd/mm/yyyy HH:MI:SS')  FROM dual;

Comments

Popular posts from this blog

Spring MVC with Sqlite sample

Struts Tutorial Page