Change date format.

This commit is contained in:
shimamoto
2013-06-20 21:57:15 +09:00
parent 8ce22a8846
commit 5e90acb64c

View File

@@ -9,14 +9,14 @@ import twirl.api.Html
object helpers {
/**
* Format java.util.Date to "yyyy/MM/dd HH:mm:ss".
* Format java.util.Date to "yyyy-MM-dd HH:mm:ss".
*/
def datetime(date: Date): String = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(date)
def datetime(date: Date): String = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date)
/**
* Format java.util.Date to "yyyy/MM/dd".
* Format java.util.Date to "yyyy-MM-dd".
*/
def date(date: Date): String = new SimpleDateFormat("yyyy/MM/dd").format(date)
def date(date: Date): String = new SimpleDateFormat("yyyy-MM-dd").format(date)
/**
* Converts Markdown of Wiki pages to HTML.