Mercurial > public > lazybear
view LazyBear/Global functions/ConvertStringToDate.swift @ 459:114e4e3d1c7a
Delete ColorTest.swift
committer: GitHub <noreply@github.com>
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Mon, 28 Jun 2021 16:32:19 +0200 |
parents | 5f21f7c23c5e |
children |
line wrap: on
line source
// // ConvertStringToDate.swift // LazyBear // // Created by Dennis Concepción Martín on 7/6/21. // import SwiftUI /* Convert String to date with the format specified */ func convertStringToDate(_ stringDate: String) -> Date { let dateFormatter = DateFormatter() dateFormatter.dateFormat = "yyyy-MM-dd" let date = dateFormatter.date(from: stringDate)! return date }