If you are using Java’s util.Date then like in java:
val format = new java.text.SimpleDateFormat("yyyy-MM-dd")
format.parse("2013-07-06")
docs for formating – SimpleDateFormat
or if you are using joda’s DateTime, then call parse method:
DateTime.parse("07-06-2013")
docs – DateTime