Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.{Date, Locale}
- import java.text.DateFormat._
- object HelloWorld {
- def main(args: Array[String]): Unit = {
- println(FrenchDate.getDate)
- }
- }
- object FrenchDate {
- def getDate: String = {
- val now = new Date
- val df = getDateInstance(LONG, Locale.FRANCE)
- df format now
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement