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

finish

parent 5d0d30e2
......@@ -53,12 +53,12 @@ object Utils {
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)
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)
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