Пример #1
0
        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());
        }
Пример #2
0
        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());
        }
Пример #3
0
        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"]));
        }
Пример #4
0
 public string GetWeekandDate(DateTime dt)
 {
     return(string.Format("{0:MM月dd日} {1}", dt, TimeExtend.GetChineseWeekName(dt)));
 }