Loading

oracle时间函数

1、返回日期为星期几

(1)显示当前日期是星期几

select to_char(SYSDATE,'DY') from dual;

(2)查看指定日期为星期几

select to_char(to_date('2013-01-04','yyyy-MM-dd'),'DY') from dual;

 

2、返回日期为当年的第几周

select to_char(sysdate,'FMWW') from dual;

 

 

posted @ 2013-01-05 14:17  uzipi  阅读(159)  评论(0编辑  收藏  举报