Scala datetime parse

public static DateTime parse(String str)
Parses a DateTime from the specified string.
This uses ISODateTimeFormat.dateTimeParser().

Parameters:
str - the string to parse, not null

import com.github.nscala_time.time.Imports._

val dateTime = DateTime.parse("5-10-2001")
z0san