public string GetWeekConference(DateTime dt) { DateTime weekBeginDate = TimeExtend.GetWeekBeginDate(dt); StringBuilder builder = new StringBuilder(); for (int i = 0; i < 7; i++) { builder.Append(this.GetDayMeetContent(weekBeginDate.AddDays((double)i))); } return(builder.ToString()); }
public string ShowAUserWeekMeetMessage(string userCode, DateTime dt) { DateTime weekBeginDate = TimeExtend.GetWeekBeginDate(dt); StringBuilder builder = new StringBuilder(); for (int i = 0; i < 7; i++) { builder.Append(this.GetAuserDayMeetContent(userCode, weekBeginDate.AddDays((double)i))); } return(builder.ToString()); }
public static string WeekAge(DateTime dt) { Dictionary <string, DateTime> dictionary = TimeExtend.WeekBeginAddEndDay(dt); return(string.Format("{0:yyyy年MM月dd日} - {1:yyyy年MM月dd日}", dictionary["WeekBegin"], dictionary["WeekEnd"])); }
public string GetWeekandDate(DateTime dt) { return(string.Format("{0:MM月dd日} {1}", dt, TimeExtend.GetChineseWeekName(dt))); }