Android Question How to use DatePickerDialog.HighlightedDays

Discussion in 'Android Questions' started by taylorw, Jul 3, 2019.

  1. taylorw

    taylorw Active Member Licensed User

    Hi everyone, I have try to use DatePickerDialog.HighlightedDays, anyone have used it before?
     
  2. DonManfred

    DonManfred Expert Licensed User

    It would probably help if you post a link to the library used....
     
  3. taylorw

    taylorw Active Member Licensed User

    Hi, that is the link of the library https://www.b4x.com/android/help/materialdatetimepicker.html#datepickerdialog.

    And this is my code.

    Code:
    Dim cal As Calendar
    Dim DP As DatePickerDialog
        cal.Initialize(
    "MMM dd, yyyy",cal.US,DateTime.Date(DateTime.Now))
        
        DP.Initialize(
    "Date_From_Picker",DateTime.GetYear(DateTime.Now),DateTime.GetMonth(DateTime.now) - 1,DateTime.GetDayOfMonth(DateTime.now))
        DP.HighlightedDays( 
    Array As Calendar(cal))
        DP.show(
    "Date_From_Picker")
    But I get this error.
     
  4. DonManfred

    DonManfred Expert Licensed User

    I do not have the source of this lib anymore. Lost with a HDD crash in 2017.
    I can´t help here anymore.

    If the lib does not work for you then you need to find another DatePicker. Sorry.
     
    taylorw likes this.
  5. taylorw

    taylorw Active Member Licensed User

    It's okay, thank for your help. :)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice