Call date input vs current day of the month

hi, i was trying to compare the current day vs the selected day so that the user has to pick today and won’t allow them to go to the next step if they pick another date.

here are my blocks:

but for some reason the message ‘Has to start from today!’ keeps appearing although i have inputted the current date

Your first if block is trying to compare a date value (which will be something like ‘Oct 31, 2024’) with a value for the current day of the week (which will be a single digit integer from 1-7 representing each weekday).

This is always going to return false.

You need to compare values of the same format. See below

Is there any reason to allow the user to select a date that must be todays date? Why not just get todays date using the device blocks since that appears to be the value that you want?

Or do you want them to only be able to select dates from today and into the future?

Edit: Also your second if statement attempts to add a value of 3 to a date, this will return a NaN result and will not compare properly against the start diet Get Date.

ah ok thanks a lot