Ejemplo n.º 1
0
        public string BookingDay()
        {
            string output = "";
            long   tdy    = FSManager.GetSeconds(DateTime.Now);

            if (FSManager.CheckDateWithinWeek(tdy, StartTime))
            {
                int today = FSManager.GetDayOfWeek(DateTime.Now);
                int b     = FSManager.GetDayOfWeek(FSManager.GetDateFromSeconds(StartTime));
                if (today == b)
                {
                    output = "TODAY";
                }
                else if (b == (today + 1))
                {
                    output = "TOMORROW";
                }
                else
                {
                    output = FSManager.GetDateFromSeconds(StartTime).DayOfWeek.ToString();
                }
            }
            else
            {
                // Just post date
                DateTime dt = FSManager.GetDateFromSeconds(StartTime);
                output = dt.Month + "-" + dt.Day;
            }
            return(output);
        }
Ejemplo n.º 2
0
 public int[] GetTodaysHours(DateTime dt)
 {
     return(Hours[FSManager.GetDayOfWeek(dt)]);
 }