Files
GetGoing/ProjectClock/Utils.swift
T
2021-01-17 13:25:04 -05:00

20 lines
300 B
Swift

//
// Utils.swift
// ProjectClock
//
// Created by Hykilpikonna on 1/17/21.
//
import Foundation
extension Date
{
/// Add toString to Date
func str() -> String
{
let f = DateFormatter()
f.dateFormat = "yyyy-MM-dd hh:mm:ss"
return f.string(from: self)
}
}