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
Ejemplo n.º 1
0
 public static DateTime SundayDate(DateTime dt, DayOfWeek startOfWeek = DayOfWeek.Monday)
 {
     return(RockDateTime.GetSundayDate(dt));
 }
Ejemplo n.º 2
0
 public static DateTime SundayDate(DateTime dt)
 {
     return(RockDateTime.GetSundayDate(dt));
 }