Skip to content

Commit 29d0845

Browse files
authored
Merge pull request #14 from ahmetsina/patch-1
Incorrect dataformat fixed
2 parents 4949078 + ab1d19a commit 29d0845

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ALFormInput/Classes/ALDatePicker.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class ALDatePicker: ALValidatableTextField {
2121
private var datePickerMode: UIDatePicker.Mode?
2222
private var minDate: Date?
2323
private var maxDate: Date?
24-
private var showFormat: String = "HH/mm/yyyy"
24+
private var showFormat: String = "dd/MM/yyyy"
2525
private var locale: Locale?
2626
public var selectedDate: Date?
2727

@@ -41,7 +41,7 @@ public class ALDatePicker: ALValidatableTextField {
4141
minDate: Date? = nil,
4242
maxDate: Date? = nil,
4343
locale: Locale? = Locale.current,
44-
dateShowFormat: String = "HH/mm/yyyy") {
44+
dateShowFormat: String = "dd/MM/yyyy") {
4545
self.datePickerMode = pickerMode
4646
self.minDate = minDate
4747
self.maxDate = maxDate

0 commit comments

Comments
 (0)