public static ToElapsedString ( this dateTime, bool condensed = false, bool includeTime = true ) : string | ||
dateTime | this | The date time. |
condensed | bool | if set to |
includeTime | bool | if set to |
return | string |
public static string ToElapsedString( this DateTime? dateTime, bool condensed = false, bool includeTime = true )
{
if ( dateTime.HasValue )
{
return ToElapsedString( dateTime.Value, condensed, includeTime );
}
else
return string.Empty;
}