Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created February 6, 2019 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/b89ca26d2763e886c20618863e9355f7 to your computer and use it in GitHub Desktop.
Save fitomad/b89ca26d2763e886c20618863e9355f7 to your computer and use it in GitHub Desktop.
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