mirror of
https://github.com/nsnail/ns-ext.git
synced 2025-12-29 00:05:48 +08:00
..
This commit is contained in:
@@ -43,19 +43,6 @@ public static class DateTimeExtensions
|
||||
}
|
||||
|
||||
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public static string yyyyMM(this DateTime me)
|
||||
{
|
||||
return me.ToString("yyyyMM");
|
||||
}
|
||||
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public static string yyyyMMdd(this DateTime me)
|
||||
{
|
||||
return me.ToString("yyyyMMdd");
|
||||
}
|
||||
|
||||
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public static string yyyy_MM(this DateTime me)
|
||||
{
|
||||
@@ -86,4 +73,17 @@ public static class DateTimeExtensions
|
||||
{
|
||||
return me.ToString("yyyy-MM-dd HH:mm:ss.fff");
|
||||
}
|
||||
|
||||
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public static string yyyyMM(this DateTime me)
|
||||
{
|
||||
return me.ToString("yyyyMM");
|
||||
}
|
||||
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public static string yyyyMMdd(this DateTime me)
|
||||
{
|
||||
return me.ToString("yyyyMMdd");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user