Special Class that returns current Current DateTime based on the TimeZone set in Web.Config This is done because the system may be hosted in a different timezone than the organization Rock developers should use RockDateTime.Now instead of DateTime.Now
Esempio n. 1
0
 public static DateTime SundayDate(DateTime dt, DayOfWeek startOfWeek = DayOfWeek.Monday)
 {
     return(RockDateTime.GetSundayDate(dt));
 }
Esempio n. 2
0
 public static DateTime SundayDate(DateTime dt)
 {
     return(RockDateTime.GetSundayDate(dt));
 }