Answers for "format dd/mm/yyyy HH:MM:ss to dd/mm/yyyy hh:mm a"

VBA
1

s yyyy-MM-dd HH:mm:ss Short Date Local

func DateFromWebtoApp(_ date: String) -> String {
    let dateFormatter = DateFormatter()
    dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
    let date = dateFormatter.date(from: date)
    dateFormatter.dateFormat = "MM-dd-yyyy"
    return  dateFormatter.string(from: date!)
}
Posted by: Guest on December-04-2020

Code answers related to "format dd/mm/yyyy HH:MM:ss to dd/mm/yyyy hh:mm a"

Code answers related to "VBA"

Browse Popular Code Answers by Language