lilili
11 months ago
3 changed files with 51 additions and 5 deletions
-
1ICSSoft.WMS.WebAPI/ICSSoft.Common/ICSSoft.Common.csproj
-
28ICSSoft.WMS.WebAPI/ICSSoft.Common/SystemHelper.cs
-
27ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseLotInfoService.cs
@ -0,0 +1,28 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace ICSSoft.Common |
|||
{ |
|||
public static class SystemHelper |
|||
{ |
|||
#region DateTime
|
|||
public static string GetDateNowString(string format = "yyyy-MM-dd HH:mm:ss") |
|||
{ |
|||
return DateTime.Now.GetDateString(format); |
|||
} |
|||
|
|||
public static string GetDateString(this DateTime dateTime,string format = "yyyy-MM-dd HH:mm:ss") |
|||
{ |
|||
return dateTime.ToString(format); |
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
} |
|||
|
|||
|
|||
|
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue