Monday first day, great.
This is my code
B4X:
private Sub GetFechaControl(Control As B4XFloatTextField)
Dim I As Long
Try
Dim Im As IME
Im.HideKeyboard
Log(DateTime.DateFormat)
D.Initialize(Activity, DateTime.Now)
D.RedSaturday=1
D.RedSunday=1
D.StartOnMonday=True
I=D.Show("Select Date")
If I=DialogResponse.POSITIVE Then
'ToastMessageShow(DateTime.GetDayOfMonth(D.DateSelected) & "-" & DateTime.GetMonth(D.DateSelected) & "-" & DateTime.GetYear(D.DateSelected),True)
Control.Text = modGeneral.DateE2( d.DateSelected )
Else
'ToastMessageShow("Don't selected",False)
End If
Log(DateTime.DateFormat)
Catch
Log(LastException)
End Try
End Sub
and execute this funcion in B4XFloatTextFields on focus (is not perfect, but easy solucion).
May be, in future, b4xfolattextfields have a date editor internal.
B4X:
Sub B4Fecha_FocusChanged (HasFocus As Boolean)
If HasFocus Then
GetFechaControl(Sender)
End If
End Sub
before this code i used DateTemplate As B4XDateTemplate