B4A Question AS_DatePicker FirstDayOfWeek doesn't work - Alex_197    Oct 8, 2025 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. #Region Project... As B4XView End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("Layout") txtDate.SetColorAndBorder(Colors.White,2dip,Colors.Black,0dip) dpTest.FirstDayOfWeek=6... B4J Question Change First Day of week - aeric (first post)    Aug 31, 2024   (1 reaction) Return the day of week from ticks
' Values are between 1 to 7, where 1 means Saturday.
Sub DayOfWeek (Ticks As Long) As Int
Dim Day As Int = (DateTime.GetDayOfWeek(Ticks) + 1) Mod 7
Return... B4A Library [B4X] [XUI] AS Scheduler 📅 - MonthView, DayView (Week), AgendaView and CalendarView [Payware] - Alexander Stolte    Mar 3, 2025   (33 reactions)
GetFirstDayOfWeek2 (Ticks As Long, FirstDayOfWeek As Int) As Long
FirstDayOfWeek:
Friday = 1
Thursday = 2...
RecurringUnit - day - week - month - year are valid
Use ASSchedulerUtils.Recurring_Day for... B4A Library [B4X] [XUI] AS CalendarExpandable📅 [Payware] - Alexander Stolte    May 26, 2025   (13 reactions)
getCurrentView_YearView As String
getDragPanelColor As Int
getDragPanelIndicatorColor As Int
getFirstDayOfWeek As Int
GetFirstDayOfWeek2 (Ticks As Long, FirstDayOfWeek As Int) As Long
FirstDayOfWeek:
Friday = 1...) As String
setDragPanelIndicatorColor (Color As Int) As String
setFirstDayOfWeek (number As Int... B4A Library [Class] AnotherDatePicker - A simple "web style" date picker - Erel    Feb 18, 2019   (16 reactions)   tags: Date designer and more configurable options (including first day of week).
v1.11 - Fixes an issue....
The months names and days names are based on the device locale.
In order to use this class in your code... B4A Library [B4X] [XUI] AS DatePicker - fast navigate to a Month - Year - Decade - Century | RangeDatePicker - Alexander Stolte    Aug 8, 2025   (24 reactions) As String
getCurrentView_YearView As String
GetFirstDayOfWeek2 (Ticks As Long, FirstDayOfWeek As Int) As Long
FirstDayOfWeek:
Friday = 1
Thursday = 2
Wednesday = 3
Tuesday = 4
Monday = 5
Sunday... B4A Question Get first day and last day of current week - Erel (first post)    May 14, 2017   (3 reactions) .GetDayOfWeek(DateTime.Now)+6) Mod 7) 'change to 5 to start the week from Monday
Dim FirstDay As Long...Such lines are "dangerous":
Dim FirstDay As Long = DateTime.Now-(DateTime.TicksPerDay... B4A Library [B4X] [XUI] AS WeekdaySelector - Alexander Stolte    Aug 6, 2025   (14 reactions) GetFirstDayOfWeek2 (Ticks As Long, FirstDayOfWeek As Int) As Long FirstDayOfWeek: 1 = Sunday 2 = Monday 3....BodyText_DayOfMonth</code> BodyTextColor As Int FirstClickColor As Int FirstDayOfWeek As Int 1-7 1 = Sunday...: WeekDayClicked (WeekDay As AS_WeekdaySelector_WeekDay, ClickState As Int) Fields: mBase As B4XView Tag As Object Functions: BodyText_DayOfMonth As String BodyText_None As String BodyText_WeekDay...) As String 1 = Sunday HeaderText_DayOfMonth As String HeaderText_None As String HeaderText_WeekDay... B4A Question Correct day of week calculation (starting monday) - peacemaker    Feb 2, 2020 HI, All
Any help with piece of code to calculate normally the current week day starting the monday ?
DateTime.GetDayOfWeek(DateTime.Now) 'returns 1 for the Sunday, but need to calculate it as 7
AHLocale lib can give FirstDayOfWeek where the monday is 2.
How to calculate these all to Sunday =7 and Monday =1 ?... B4A Library [B4X] [XUI] AS DatePickerTimeline - Alexander Stolte    Feb 20, 2025   (22 reactions)
setFirstDayOfWeek (number As Int) As String
1-7
Friday = 1
Thursday = 2
Wednesday = 3
Tuesday = 4...:
BodyProperties As ASDatePickerTimeline_BodyProperties
Call Refresh if you change something
FirstDayOfWeek
1... Page: 1   2   3   4   5   6   |