This commit is contained in:
2019-06-10 20:47:00 +00:00
parent d1110a7d3c
commit 709e9ff94d
4 changed files with 50 additions and 7 deletions

View File

@@ -63,6 +63,22 @@ namespace AyaNova.Util
}
/// <summary>
/// Returns current date/time in sortable format
///(used for duplicate names by stringUtil and others)
/// </summary>
/// <returns></returns>
public static string SortableShortCurrentDateTimeValue
{
get
{
return DateTime.Now.ToString("s");
//Was going to use MaxValue but apparently that varies depending on culture
// and Postgres has issues with year 1 as it interprets as year 2001
// so to be on safe side just defining one for all usage
}
}