savvisingh / DateRangePicker

Date Range Picker is a Calendar Picker View to show a Customized Date Range Picker with improved UI and functionality to add subtitles to the dates
Apache License 2.0
784 stars 160 forks source link

Hom to set local data and DateFormat #56

Closed KreephetSathotnluk closed 5 years ago

KreephetSathotnluk commented 5 years ago

calendar_view.init(lastYear.time, nextYear.time, SimpleDateFormat("MMMM YYYY", Locale("th","th"))) .inMode(CalendarPickerView.SelectionMode.RANGE) .withSelectedDate(Date()) I'm set this is not 2568

savvisingh commented 5 years ago

Please use init(Date minDate, Date maxDate, TimeZone timeZone, Locale locale, DateFormat monthNameFormat) to specify different locale and timeZone, with custom month name format