put in ignore file

This commit is contained in:
2025-08-10 22:01:36 +10:00
parent c2bf5cad70
commit ba79e8f1c4
151 changed files with 21703 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
namespace FamilyTreeAPI.Helper
{
public class Helpers
{
public static string? DateToStr(DateTime? date)
{
string? result = null;
if (date.HasValue)
{
result = date.Value.ToString("yyyy-MM-dd");
}
return result;
}
public static DateTime? DateToDateTime(string? date)
{
DateTime? result = null;
if (!string.IsNullOrEmpty(date))
{
DateTime dt;
if (DateTime.TryParse(date, out dt))
{
result = dt;
}
}
return result;
}
}
}