"%d-%02d-%02d".fmt(Time.Clock.localTime.xplode()).println() //--> "2014-02-28" (ISO format)