Hello
I have a SharePoint list with a DATE field and Title field.
I have a fixed time periode (fiscale year) from in a year XXXX based on a drop down:
DropDown: Item ["2023","2024","2025"]
The periode is like:
> 30.09.XXXX And < 01.10.XXXX (year plus 1) //EXAMPLE: > 30.09.2024 And < 01.10.2025
So I have created the following formula for a Gallery to show only items in that period:
/*
myDate is the SP-Column in the list TEST_DATE and
the date has the format: dd.mm.yyyy which is set in DataCardValue FORMAT
I added a required year Text(Dropdown1.Selected.Value +1)
*/
Filter(
TEST_DATE,
Dropdown1.Selected.Value in myDATE > DateTimeValue("10.09." & Text(Dropdown1.Selected.Value) And Dropdown1.Selected.Value in myDATE < DateTimeValue("31.03." & Text(Dropdown1.Selected.Value +1)))
)
I can remeber that there is an issue with the standard format for DATE in SharePoint mm.dd.yyyy but we need to use for our user dd.mm.yyyy.
The error in the gallery is: "The value 'false' cannot be converted to date or time value".
Looks like that the DateTimeValue function is not converting it correct...
Any ideas are appreciated :)
Thanks in advance.
Kind regards
Michael