DateTime
ToShortDateString
Converts the value of the current DateTime?
object to its equivalent short date string representation. If value is null then returns specified defaultValue
.
Same works for long DateTime representation - ToLongDateString()
ToString
Converts the value of the current DateTime?
object to its equivalent string representation using the specified format and the formatting conventions of the current culture. If value is null then returns specified defaultValue
Last updated