DateTimeExtensions.ToString Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

ToString(DateTime?, string)

Converts a datetime object to string.

public static string ToString(this DateTime? date, string format)

Parameters

date
System.DateTime?

The date to convert.

format
string

The format to use when converting.

Returns

string

The datetime object as a string with the specified format applied.