Hi,
I am trying to work out how to create a list so that is displays the month with the year like:
July 2022
August 2022
September 2022
October 2022
November 2022
December 2023
January 2023
February 2023
March 2023
April 2023
May 2023
June 2023
Then from July 2023 it should be:
July 2023
August 2023
September 2023
October 2023
November 2023
December 2023
January 2024
February 2024
March 2024
April 2024
May 2024
June 2024
I have worked out how to display the months, but can't work out how to do the years..
(most likely not the best way in displaying the months, but seems to work)
Any ideas on how to add the year to the month ?
I am trying to work out how to create a list so that is displays the month with the year like:
July 2022
August 2022
September 2022
October 2022
November 2022
December 2023
January 2023
February 2023
March 2023
April 2023
May 2023
June 2023
Then from July 2023 it should be:
July 2023
August 2023
September 2023
October 2023
November 2023
December 2023
January 2024
February 2024
March 2024
April 2024
May 2024
June 2024
I have worked out how to display the months, but can't work out how to do the years..
(most likely not the best way in displaying the months, but seems to work)
B4X:
Dim month_names As List
month_names.Initialize
month_names = DateUtils.GetMonthsNames
For i = 6 To 11
Log(month_names.get(i))
Next
For i = 0 To 5
Log(month_names.get(i))
Next
Any ideas on how to add the year to the month ?