Gets the current date and time.

Namespace: SampleClassLibrary.Utils
Assembly: SampleClassLibrary (in SampleClassLibrary.dll)

Public Shared Function GetCurrentDate() As Date
This language is not supported or no code example is available.
public static DateTime GetCurrentDate()
This language is not supported or no code example is available.
static member GetCurrentDate : unit -> DateTime
This language is not supported or no code example is available.
public:  
static DateTime GetCurrentDate()
This language is not supported or no code example is available.
public static function GetCurrentDate() : DateTime;
This language is not supported or no code example is available.

Return Value

Type: DateTime

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Core

Supported in: 1.0, 1.1, 2.0

.NET Standard

Supported in: 2.0

Xamarin.Android

Supported in: 7.1

Portable Class Library

Supported in: Portable Class Library