摘要:
/// /// 获取当前日期是一年中的第几周 /// /// /// public static int CurrentWeekIndex(this DateTime time) { var calendar = CultureInfo.CurrentCultur... 阅读全文
摘要:
/// /// 获取日期是周几 /// /// /// public static string GetWeekIndexName(this DateTime time) { return GetLocalWeekDayChs(time.WeekDayIndex());... 阅读全文
摘要:
private object GetSeasonDataByYear(DateTime thisTime, List baseStatisticsList, List dialysisWayList) { //源格式:透析方式-季度数组 List> tupleList = new List>(); ... 阅读全文
摘要:
/// <summary> /// 获取传入值得从0->N 累计序列 /// </summary> /// <param name="num"></param> /// <returns></returns> private int[] GetEveryDayIndex(int num) { if 阅读全文
摘要:
//本季度第一天 DateTime firstDayOfThisQuarter = Convert.ToDateTime(DateTime.Now.AddMonths(0 - (DateTime.Now.Month - 1) % 3).ToString("yyyy-MM-01")); //本年度第一 阅读全文
摘要:
//调用 DateTime.Now.HdsiWeek().First().WeekDate //第一条结果 阅读全文
摘要:
DaysInMonth(int year, int month) DaysInMonth(2018,7) //结果 31 阅读全文