28 lines
591 B
Swift
28 lines
591 B
Swift
|
//
|
||
|
// DateFormatter+Formatter.swift
|
||
|
// APIServices
|
||
|
//
|
||
|
// Created by Javier Cicchelli on 04/12/2022.
|
||
|
// Copyright © 2022 Röck+Cöde. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
extension DateFormatter {
|
||
|
static let iso8601 = {
|
||
|
let dateFormatter = DateFormatter()
|
||
|
|
||
|
dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZ"
|
||
|
|
||
|
return dateFormatter
|
||
|
}()
|
||
|
|
||
|
static let isoZulu = {
|
||
|
let dateFormatter = DateFormatter()
|
||
|
|
||
|
dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
|
||
|
|
||
|
return dateFormatter
|
||
|
}()
|
||
|
}
|