一:DateTime.IsLeapYear 方法判断是否是闰年 二:代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace GetDays { public pa
select * from dt where dw_data=to_date(to_char(sysdate-1,'YYYY-MM-DD'),'YYYY-MM-DD') ---取前一天日期 SQL> select * from dt where dw_data=trunc(sysdate-1,'dd'); DW_DATA --------- 25-DEC-00 SQL> alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss'; SQL
<SCRIPT language="javascript"> function addDate(dd,dadd){ var a = new Date(dd) a = a.valueOf() a = a + dadd * 24 * 60 * 60 * 1000 a = new Date(a) return a; } //抓取现在日期 var now = new Date("2008/03/01"); var years = now.getYear()+1;