DateTimeExtensions.ToString Method

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

ToString(NullableTime>, String)

Converts a datetime object to string.

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

Parameters

date
System.Nullable{System.DateTime}
format
System.String

Returns

System.String

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