Jota21
New Member
Hello everyone,
I'm using the AS_DatePicker library (v1.31) and I've encountered two main issues. I’m displaying the DatePicker inside a Panel that becomes visible when a Label is clicked, and it hides again once a date is selected.
Here are the problems I’ve run into:
I’m using the latest version of the library (1.31). Has anyone else experienced this issue or found a fix for the day mismatch?
Thank you in advance!
I'm using the AS_DatePicker library (v1.31) and I've encountered two main issues. I’m displaying the DatePicker inside a Panel that becomes visible when a Label is clicked, and it hides again once a date is selected.
Here are the problems I’ve run into:
- Wrong Year Selected on Date Change
When I click the Label, the component shows up correctly. However, when selecting a date, the AS_DatePicker1_SelectedDateChanged event fires with a date that shows the previous year.
Fortunately, I found a post from another user who had the same issue, and the solution was to add these lines to ensure the selected date is accurate (e.g., 2025):
B4X:
Private Sub Label12Hinicio_Click
Panel12.Visible = True
Sleep(0)
AS_DatePicker1.Scroll2Date(DateTime.Now)
End Sub
- Incorrect Day of the Week
The second issue is that the calendar displays the wrong day of the week for selected dates. For example, May 29, 2025 is a Thursday, but the DatePicker shows it as Friday, which is actually correct for the same date in 2026.
It seems the internal calendar is not aligned with the actual one for 2025.
I’m using the latest version of the library (1.31). Has anyone else experienced this issue or found a fix for the day mismatch?
Thank you in advance!