Class DateUtil
The DateUtil class provides utility methods for working with dates. It includes predefined date format strings and methods to retrieve the current date formatted according to a specified pattern.
Inherited Members
Namespace: EasySave_Project.Util
Assembly: .dll
Syntax
public static class DateUtil
Fields
| Edit this page View SourceYYYY_MM_DD_HH_MM_SS
A predefined date format string for "yyyy_MM_dd_HH_mm_ss".
Declaration
public static string YYYY_MM_DD_HH_MM_SS
Field Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceGetTodayDate(string)
Gets the current date formatted according to the specified regex pattern.
Declaration
public static string GetTodayDate(string regex)
Parameters
Type | Name | Description |
---|---|---|
string | regex | The format string to apply to the current date. |
Returns
Type | Description |
---|---|
string | The current date as a string formatted according to the specified pattern. |