private DateTime GetPreDate(DateTime dateTime)
 {
     try
     {
         return(Picker switch
         {
             DatePickerType.Date => DateHelper.AddDaysSafely(dateTime, -1),
             DatePickerType.Year => DateHelper.AddYearsSafely(dateTime, -1),
             DatePickerType.Month => DateHelper.AddMonthsSafely(dateTime, -1),
             DatePickerType.Quarter => DateHelper.AddMonthsSafely(dateTime, -3),
             _ => dateTime,
         });
     }