2023-02-13 19:47:08 +01:00
|
|
|
|
namespace Application.Common.Helpers;
|
|
|
|
|
|
|
|
|
|
public static class TimeHelper
|
|
|
|
|
{
|
|
|
|
|
public static string CurrentTimeToString()
|
|
|
|
|
{
|
|
|
|
|
return DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
|
|
|
|
|
}
|
2023-02-14 19:14:19 +01:00
|
|
|
|
|
|
|
|
|
public static string DateToString(DateTime time)
|
|
|
|
|
{
|
|
|
|
|
return time.ToString("yyyy-MM-dd");
|
|
|
|
|
}
|
2023-02-13 19:47:08 +01:00
|
|
|
|
}
|