Android Question select date issue in SDCalenderDialog

Shripal Dalal

Member
Licensed User
Longtime User
I am using this attached date project into my ongoing project.
i picked SDCalendarDialog4 from example project and simply put on my designer. and i had put a class "SDCalenderDialog" into project.

The problem i face is - date dialog always open a predefined date i.e 1st may 2017.
i used datetime.now to get current date.

B4X:
Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("main")
    SDCalendarDialog4.SetDate(DateTime.Now)
End Sub

Problem scenario is:-
If i select date dialog it always opens date i.e 1st may 2017.
for example: if i select 1st oct 2017.
But when i click that date again it opens that predefined date which was 1st may 2017 and not 1st oct 2017

Desired result:-

it should open selected date i.e 1st oct 2017.

anybody have any idea on how to achieve the above mentioned desired result?
 

Attachments

  • CalendarDialog.zip
    83.6 KB · Views: 260
Top