MaterialDateTimePicker

roberto64

Active Member
Licensed User
Longtime User



hello DonManfred, in the version of Android 2.3.6 when compiling in debug arrived in the line "diaDate.Initialize (" Date ", DateTime.GetYear (DateTime.Now), DateTime.GetMonth (DateTime.Now) -1, DateTime. GetDayOfMonth (DateTime.Now)) "the program exits without giving an error.
regards
 

DonManfred

Expert
Licensed User
Longtime User
This lib needs

Support for Android 4.0 and up.
 

Gawro777

Member
Licensed User
Longtime User
Great Job! Works perfectly! Thanks!

I would like to use it also to choose default time in AHPreference manager. Is there any way to add it to preference category? As Android intent, maybe? How to do it (short example, pls)?
Thanks for help.
 

AHilton

Active Member
Licensed User
Longtime User
I'm having the same issue as below...

B4A version 6.31 Registered
Library version 1.52 and the aar file is in my custom libraries folder.

During debug, it works fine. In Release, it give that error.



 

Gabino A. de la Gala

Active Member
Licensed User
Longtime User
It works perfect.

What about to have a TODAY button in datepicker y NOW in timepicker?

Could be?. I did not find how to do it...
 

dealsmonkey

Active Member
Licensed User
Longtime User
Hi, nice library

I am having an issue where I cannot got the mindate to work. I have tried your example and that is the same I am based in the UK.

What I am trying to do is prevent the user from entering a date before today ?

B4X:
materialDateDialog.Initialize("startDate",y,m,d)   
Dim cal As Calendar   
cal.Initialize("dd.MM.yyyy",cal.UK,$"${d}.${m}.${y}"$)   
materialDateDialog.MinDate = cal

any thought please ?
 

dealsmonkey

Active Member
Licensed User
Longtime User


You are correct ! Very strange, just pasted your code and all worked. Thanks for the reply !
 

Douglas Farias

Expert
Licensed User
Longtime User
Hi @DonManfred
i m trying use this lib, but i got a error. (just a report)

when i try select a date of January of 2017 (or + 2018,2019 etc...) i got (- 1 month)
Example:
i selected day 01 month 01 year 2017
log = 1/0/2017


here is the sub
Sub pegardata_onDateSet(year As Int, monthOfYear As Int, dayOfMonth As Int)
Log(dayOfMonth&"/"&monthOfYear&"/"&year)
End Sub


if i select February
day 01 month 01 year 2017
log = 1/1/2017

with 2016 i dont have this error, only the next years

thx
 

fredo

Well-Known Member
Licensed User
Longtime User
I´m VERY PROUD to present you this Date- and TimePicker Dialog library!

Thank you for your work on wrapping this lib. It is very useful.

As it seems the author released a new version.

Is there a possibility that you can let your magic work again on the wrap?


In order to keep up with the MD Standards the dialog needs to be presented like this:
 

Attachments

  • 03-12-_2016_09-29-00.jpg
    191.4 KB · Views: 311
Cookies are required to use this site. You must accept them to continue using the site. Learn more…