Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to solve the error Invalid Month 0 #9

Open
gopalsunkpo opened this issue Nov 1, 2017 · 1 comment
Open

How to solve the error Invalid Month 0 #9

gopalsunkpo opened this issue Nov 1, 2017 · 1 comment

Comments

@gopalsunkpo
Copy link

{
super.viewDidLoad()

    calendarFromDateArr2 =  ["2017-11-05T07:41:00", "2017-10-30T11:23:00", "2017-10-30T11:48:00", "2017-11-10T00:00:00", "2017-11-13T19:43:00", "2017-12-01T00:00:00", "2017-12-31T00:00:00"]
    
    
    for calendardate in calendarFromDateArr2
    
    {
        
        
        print("date :\(calendardate)")
        
        let dateFormatter = DateFormatter()
        
        dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
        dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss"
        
        let date = dateFormatter.date(from: calendardate)
        
        print(date)
        
        
        self.calendarView.selectedDate = date
    
        
        //return
        
        
    }
    
    
}
@unixzii
Copy link
Owner

unixzii commented Nov 1, 2017

Could you tell me your OS version and any logs printed of this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants