string2Date

open fun string2Date(time: String): Date

Formatted time string to the date.

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

Return

the date

Parameters

time

The formatted time string.

open fun string2Date(time: String, format: DateFormat): Date

Formatted time string to the date.

Return

the date

Parameters

time

The formatted time string.

format

The format.