DateTimeConstant.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace ERP.Framework.Constants
  7. {
  8. public static class DateTimeConstant
  9. {
  10. /// <summary>
  11. /// 年/月/日
  12. /// </summary>
  13. public const string DATE = "yyyy/MM/dd";
  14. /// <summary>
  15. /// 年/月/日 时:分
  16. /// </summary>
  17. public const string DATE_SHORT = "yyyy/MM/dd HH:mm";
  18. /// <summary>
  19. /// 年/月/日 时:分:秒
  20. /// </summary>
  21. public const string DATE_LONG = "yyyy/MM/dd HH:mm:ss";
  22. /// <summary>
  23. /// 年-月-日
  24. /// </summary>
  25. public const string DETE_TIME = "yyyy-MM-dd";
  26. /// <summary>
  27. /// 年-月-日 时:分
  28. /// </summary>
  29. public const string DETE_TIME_SHORT = "yyyy-MM-dd HH:mm";
  30. /// <summary>
  31. /// 年-月-日 时:分:秒
  32. /// </summary>
  33. public const string DETE_TIME_LONG = "yyyy-MM-dd HH:mm:ss";
  34. /// <summary>
  35. /// 时:分
  36. /// </summary>
  37. public const string TIME = "HH:mm";
  38. /// <summary>
  39. /// 时:分:秒
  40. /// </summary>
  41. public const string SYSTEM_TIME = "HH:mm:ss";
  42. }
  43. }