DateTimeExtensions.ToShortDateString Method

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

ToShortDateString(DateTime?)

Converts a datetime object to its short date string representation.

public static string ToShortDateString(this DateTime? date)

Parameters

date
System.DateTime?

The date to convert.

Returns

string

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