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