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); }
public int[] GetTodaysHours(DateTime dt) { return(Hours[FSManager.GetDayOfWeek(dt)]); }