Answers for "format date to YYYY-MM-DD hh:mm:ss"

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
0

Convert a date to yyyy mm dd format

const formatYmd = date => date.toISOString().slice(0, 10);
formatYmd(new Date());
Posted by: Guest on October-21-2020

Code answers related to "format date to YYYY-MM-DD hh:mm:ss"

Code answers related to "VBA"

Browse Popular Code Answers by Language