Date Time Format ExtensionsTo Date Time Full String 方法
格式化为完整日期时间字符串(含毫秒),如 2026-03-18 15:30:55.123
Definition
命名空间: Suresking.Utility
程序集: Suresking.Utility (在 Suresking.Utility.dll 中) 版本:1.3.22+a27276bb8ffde055e69ff608e98aafba279e1e99
格式为 yyyy-MM-dd HH:mm:ss.fff 的字符串。
程序集: Suresking.Utility (在 Suresking.Utility.dll 中) 版本:1.3.22+a27276bb8ffde055e69ff608e98aafba279e1e99
C#
public static string ToDateTimeFullString(
this DateTime dateTime
)参数
- dateTime DateTime
- 日期时间。
返回值
String格式为 yyyy-MM-dd HH:mm:ss.fff 的字符串。