Is anyone tried or maybe aware of how to assign a specific date to the date property in the database directly without using the date input component?
I already tried to assign no formatting date like this “2023-01-01T00:00:00Z” (01/01/2023) to date property in the database directly but I’m getting this
Did you try to get the day number (along with time) and put this into this property? Adalo stores dates as a number of days since 01/01/1970, 0:00 GMT+0. Convert Seconds & Days Since Year 0-1970, look at “Days since 1970”.
Let’s assume that we are in 2024 then again we need to update the no. of days manually, what I need is no matter what year it is, it should put the quarter 1 date range without using date input.
I would suggest to create a collection with dates for quarters and use it as a source. It might be complicated to calculate the number of days using a formula (due to leap years). I did this long time ago but it turned out to be much easier to use predefined values.
Another option is to use Make and create a scenario which returns the date (you can use AddMonths / AddYears functions in Make). This will cost some Make credits, of course.
And the third option is to use Arbitary Javascript component - but again, you’ll be on your own if it doesn’t work correctly.
Thanks for all the time you have given to this thread much appreciated. In the end, I created a collection a few days back already ( I get this idea a few days back). But I was waiting for an answer in the hope that it may be possible.
You have been very helpful, but the javascript component only works with the web version not on both platforms, but I will consider this if I use the web version.