Commit 153a6d12 authored by Pengfei Xue's avatar Pengfei Xue

finish

parent 5d0d30e2
...@@ -53,12 +53,12 @@ object Utils { ...@@ -53,12 +53,12 @@ object Utils {
cal.getTime cal.getTime
} }
def getNdaysBeforeStr(date: Date, n: Int, formatString: String = "yyyyMMdd") = { def getNdaysBeforeStr(date: Date, n: Int, formatString: String): String = {
val i = getNdaysBefore(date, n) val i = getNdaysBefore(date, n)
formatDateToString(i, formatString) formatDateToString(i, formatString)
} }
def getNdaysBeforeStr(date: String, n: Int, formatString: String = "yyyyMMdd") = { def getNdaysBeforeStr(date: String, n: Int, formatString: String): String = {
val i = getDateByStringAndFormatStr(date, formatString) val i = getDateByStringAndFormatStr(date, formatString)
getNdaysBeforeStr(i, n, formatString) getNdaysBeforeStr(i, n, formatString)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment