Instantly share code, notes, and snippets.

Embed
What would you like to do?
import Foundation
extension DateFormatter
{
/// Este es el *formateador* de fechas que se ajusta
/// a las fechas que vienen en nuestro documento JSON
///
/// ```
/// 31/01/2019
/// ```
public static var versionFormatter: DateFormatter
{
let formatter = DateFormatter()
formatter.dateFormat = "dd/M/yyyy"
return formatter
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment