import java.util.Locale
import org.joda.time.format.DateTimeFormat
object Time_test {
def time01(str:String): String = {
val str01: String = DateTimeFormat.forPattern("MM/dd/yyyy, h:m aa")
.withLocale(Locale.ENGLISH)
.parseDateTime(str)
.toString("yyyy-MM-dd HH:mm")
str01
}
def time02(str:String): String = {
val str01: String = DateTimeFormat.forPattern("MMM d, yyyy, h:m aa")
.withLocale(Locale.ENGLISH)
.parseDateTime(str)
.toString("yyyy-MM-dd HH:mm")
str01
}
def time03(str:String): String = {
val str01: String = DateTimeFormat.forPattern("h:m aa MMM d, yyyy")
.withLocale(Locale.ENGLISH)
.parseDateTime(str.replace(" on "," "))
.toString("yyyy-MM-dd HH:mm")
str01
}
}