Answers for "datetime-local format mm/dd/yy hh:mm"

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
1

html datetime-local format dd/mm/yyyy

<!--in input form we can set date format in dd/mm/yyyy using placeholder-->
<input type="date" placeholder="dd/mm/yyyy"> <!--use form tag currectly for see the changes-->
Posted by: Guest on April-18-2021

Code answers related to "datetime-local format mm/dd/yy hh:mm"

Browse Popular Code Answers by Language