Show / Hide Table of Contents

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.

Inheritance
object
DateUtil
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: EasySave_Project.Util
Assembly: .dll
Syntax
public static class DateUtil

Fields

| Edit this page View Source

YYYY_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 Source

GetTodayDate(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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX