Hi all
I'm using AS_DatePicker ver.1.32 and in designer I set FirstDayOfWeek as Sunday. It still shows me that the week starts with Monday.
I tried to put dpTest.FirstDayOfWeek=6 into Activity_Create - still no difference.
What am I doing wrong?
This is my code.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Thanks.
			
			I'm using AS_DatePicker ver.1.32 and in designer I set FirstDayOfWeek as Sunday. It still shows me that the week starts with Monday.
I tried to put dpTest.FirstDayOfWeek=6 into Activity_Create - still no difference.
What am I doing wrong?
This is my code.
			
				B4X:
			
		
		
		#Region  Project Attributes
    #ApplicationLabel: Date Picker Example
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
#End Region
#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
    Private xui As XUI
End Sub
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    Private dpTest As AS_DatePicker
    Private txtDate As B4XView
End Sub
Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("Layout")
    txtDate.SetColorAndBorder(Colors.White,2dip,Colors.Black,0dip)
    dpTest.FirstDayOfWeek=6
    dpTest.Rebuild
End Sub
Sub Activity_Resume  
   
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
    xui.MsgboxAsync("Hello world!", "B4X")
   
End Sub
Private Sub dpTest_SelectedDateChanged(Date As Long)
    Try  
        txtDate.Text=DateTime.Date(Date)
   
    Catch
        Log(LastException)
    End Try
End Sub
Private Sub txtDate_FocusChanged (HasFocus As Boolean)
    Try
    Catch
        Log(LastException)
    End Try
End Sub
	Thanks.
Attachments
			
				Last edited: