Skip to content
Quick and easy date picker.
Swift Ruby Objective-C
Branch: master
Clone or download
Matt [clean]
Latest commit a5f4ab1 Jan 17, 2020
Type Name Latest commit message Commit time
Failed to load latest commit information.
MDatePickerViewDemo.xcodeproj [clean] Jan 13, 2020
MDatePickerViewDemo [clean] Jan 17, 2020
.gitignore [clean] Jan 17, 2020 no message Jan 13, 2020
MDatePickerView.podspec [clean] Jan 17, 2020 no message Jan 13, 2020

License Platform Build Status


  • iOS 9.0
  • Xcode 9
  • Swift 4.0


You can install MDatePickerView in several ways:

Add source files to your project.

  • Use CocoaPods:
pod 'MDatePickerView'


import MDatePickerView

Usage example

lazy var MDate : MDatePickerView = {
        let mdate = MDatePickerView()
        mdate.Color = .gray
        mdate.delegate = self
        mdate.from = 1980 = 2100
        return mdate

Adopt the MDatePickerViewDelegate protocol in your view controller, e.g.

extension ViewController : MDatePickerViewDelegate {
    func mdatePickerView(selectDate: Date) {
        let formatter = DateFormatter()
        formatter.dateFormat = "yyyy - MM - dd"
        let date = formatter.string(from: selectDate)
        Label.text = date

What's next

  • Any suggestions?


  • If you found a bug, open an issue
  • If you have a feature request, open an issue
  • If you want to contribute, submit a pull request
  • If you have any issue or want help, please drop me a mail on


MDatePickerView is distributed under the MIT license. See LICENSE for details.

You can’t perform that action at this time.