-
-
Save fitomad/b89ca26d2763e886c20618863e9355f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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