Format a Date value including a Time portion.

If date is Nothing then a blank String will be returned.

Syntax

ISSupport.FormatDateTime(date, [longDateFormat], [longTimeFormat], [omitTimeIfMidnight], [omitTrailingFullStop])

Parameters

NameTypeOptionalByRefDescription
date Date The date to format.
longDateFormat Boolean Optional Indicates whether to use the Long Date Format. If omitted, a value of False is assumed.
longTimeFormat Boolean Optional Indicates whether to use the Long Time Format. If omitted, a value of False is assumed.
omitTimeIfMidnight Boolean Optional Indicates whether to omit the Time portion if it is midnight i.e. unspecified. If omitted, a value of False is assumed.
omitTrailingFullStop Boolean Optional Indicates whether to omit the trailing full stop - used when the date and time are at the end of a sentence. If omitted, a value of False is assumed.

Return Value

String

A String value.

Member of:
ISSupport
Namespace:
Intersoft.ISSupport6
Assembly:
ISSupport6, Version=6.0.3
Target Framework:
.NET 9.0