Created approval reminder worker

This commit is contained in:
Chase Tucker
2024-09-09 10:00:49 -07:00
parent 0fdf8179e1
commit b9b0299d3f
13 changed files with 507 additions and 5 deletions

View File

@ -0,0 +1,14 @@
namespace FabApprovalWorkerService.Utilities;
public class DateTimeUtilities {
public static DateTime MIN_DT = new DateTime(1753, 1, 1, 0, 0, 0);
public static DateTime MAX_DT = new DateTime(9999, 12, 31, 11, 59, 59);
public static string GetDateAsStringMinDefault(DateTime dt) {
return dt > MIN_DT ? dt.ToString("yyyy-MM-dd HH:mm") : "";
}
public static string GetDateAsStringMaxDefault(DateTime dt) {
return dt < MAX_DT ? dt.ToString("yyyy-MM-dd HH:mm") : "";
}
}