datetimeFromString

fun datetimeFromString(timeString: String, timeStringFormat: String, callback: Date? = null): Date

Get date object by parsing timeString in timeStringFormat format.

Return

If timeString parsing fails, it returns callback.Otherwise, it returns date object.

Since

0.5.1

Parameters

timeStringFormat

The pattern describing the date and time format.

Throws