parse

fun DateFormat.parse(str: String, doAdjust: Boolean = true): DateTimeTz
fun TimeFormat.parse(str: String, doAdjust: Boolean = true): Duration


Constructs a new DateTime by parsing the str using standard date formats.