I am looking to display the date minus and plus one, however on the regardless of the month chosen when the date is 1, the date minus 1 is showing as 31 and date plus 1 is showing as 31 (which is incorrect for Feb for example). When the date is 31 it is showing date plus one as 32 which is obvs incorrect too.
I am also finding the above does not work/show the result with tag [DAY_1_31_Z] either, only DAY_1_31].
Anyone got a workaround or any advice? Tried searching the forum and ([DAY_1_31]==1?31:[DAY_1_31]+1) which renders the above results.
Thanks @Knightwing however the +1 you shared only works for months with 31 days (and therefore shows 1), however for Feb 2024 when the date is showing 29 the +1 date is showing 30, rather than 1 which is the next date.
Similarly the -1 tag when the date is 1st March 2024 is showing 31 when it should be 29 for Feb.
On both these also when using [DAY_1_31_Z] it breaks the formula. Ideally need a leading zero on this otherwise the design will look silly.
I have looked at the thread provided and used long tag contained and it doesnāt work. Any ideas @WxmanGary how I could get this working?
HI, maybe that long code needs some fine tunning. @WxmanGary it seems for example 1st day of month - 1 the number disappears.
can you post what you have now ?
but @jsmith88 if you look trough the whole thread you do not need it to be in the way you describe.
as this is how the real analog calender disk works it such a way it has 1 to 31
so if at 1st day of the month the previous number on the disk is always 31. and the day after 31 will always be 1
Legend, thank you @Knightwing that works perfectly for date -1, now I am just trying to understand how to adapt for date +1, playing around with it as we speak, thinking something along the lines of dividing by the days in the month (instead of *) and adding 1 at the end (instead of 1) although that may be complete rubbish! Got any advice?
Also, I have updated the code to use [DAY_1_31_Z] instead of [DAY_1_31] to show the leading 0 and it breaks, any advice on showing a leading 0 on these?
Thanks for the further advice @Knightwing Iām really trying to get my head around it, so I am thinking that the Day fields need the ā-1ā removed, then the last āelseā should just be ā1ā:
You can also do this using 4 images that you move to show numbers
use one image for months with 31 days one for 30 day two for February
You just position it under āwindowsā by the day of the month.
Hi @Knightwing thanks for the additional guidance, I have been playing with all this for over 2 hours now and just canāt get my head around showing 1 where it is the last day in the previous month, is there any way you could provide that to me. Iād obviously love to work it out for myself but I seem to be confusing myself and going around in circlesā¦
Once I have this working I am thinking I might start a thread where members can post the useful tags, watch-outs and advice they have gained along their way as I have loads of little bits I have picked up throughout that other people will find super useful.
Its possible but i dont have much time on my side to type the formula, i can only guide uā¦through itā¦or correct u where u are wrong. Best to post what u have done here.
Not to worry @Knightwing I have managed to work it out by breaking it down one month at a time then going back to adjust Feb for leap years, result is the below working:
Hello,
this forum uses the * as marks for bold or slanted formating, so it is advisable to put formulas containing muliple multiplication signs into the preformated text tags.