date2String

open fun date2String(date: Date): String

Date to the formatted time string.

The pattern is {@code yyyy-MM-dd HH:mm:ss}.

Return

the formatted time string

Parameters

date

The date.

open fun date2String(date: Date, format: DateFormat): String

Date to the formatted time string.

Return

the formatted time string

Parameters

date

The date.

format

The format.