Date Time Format ExtensionsTo Date Only CNString 方法
格式化为中文日期字符串,如 2026年03月18日
Definition
命名空间: Suresking.Utility
程序集: Suresking.Utility (在 Suresking.Utility.dll 中) 版本:1.3.22+a27276bb8ffde055e69ff608e98aafba279e1e99
格式为 yyyy年MM月dd日 的字符串。
程序集: Suresking.Utility (在 Suresking.Utility.dll 中) 版本:1.3.22+a27276bb8ffde055e69ff608e98aafba279e1e99
C#
public static string ToDateOnlyCNString(
this DateTime dateTime
)参数
- dateTime DateTime
- 日期时间。
返回值
String格式为 yyyy年MM月dd日 的字符串。