DateTime dateToday = DateTime.Today;
DateTime dtFirstDay = dateToday.AddDays(1 - dateToday.Day);
DateTime dtMonthLastDay = dateToday.AddMonths(1).AddDays(0 - dateTodayDay);
DateTime dtWeekFirstSunday = first_day.AddDays(0 - (
int
)(first_day.DayOfWeek));
int
intWeekLeftDayCount = 7 - (
int
)(first_day.DayOfWeek);
DateTime dtMonthFirstSunday = dtFirstDay.AddDays(0 - (
int
)(dtFirstDay.DayOfWeek));
DateTime dtLastSunday = dtMonthLastDay.AddDays(0 - (
int
)(dtMonthLastDay.DayOfWeek));
int
intLastWeekDayCount = dtMonthLastDay.DayOfYear - dtLastSunday.DayOfYear + 1;
int
intMonthWeekCount = ((last_sunday.DayOfYear - first_sunday.DayOfYear) / 7) + 1;
string
strNow_DayOfWeek = dateToday.DayOfWeek;
string
strNowEng = String.Format(
new
System.Globalization.CultureInfo(
"en-US"
),
"{0:dddddddddd} {0:MMMMMMMM} {0:d} {0:hh}:{0:mm}:{0:ss} {0:yyyy}"
, dateToday.ToUniversalTime());
DateTime fridayDate = dateToday.AddDays(Convert.ToInt32(DayOfWeek.Friday) - Convert.ToInt32(NowDate.DayOfWeek));
댓글 영역