Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

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")
 
PREVIOUS NEXT
Tagged: #scala #Datetime #parse
ADD COMMENT
Topic
Name
7+6 =