Scala Datetime Parse

[Solved] Scala Datetime Parse | Scala - Code Explorer | yomemimo.com
Question : scala Datetime parse

Answered by : z0san

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")

Source : | Last Update : Thu, 31 Mar 22

Answers related to scala Datetime parse

Code Explorer Popular Question For Scala