HI @Ramanachiappan ,
Try something like this
If( DateValue(Text(ThisItem.SSRDate, "dd-mm-yyyy")) < Today(), Color.Red, Color.Blue )
1. Text(ThisItem.SSRDate, "dd-mm-yyyy"): This extracts the date value from the text box and formats it as a string in the "dd-mm-yyyy" format.
2. DateValue(...): This converts the formatted date string into a date value that can be compared.
3. Today(): This function retrieves the current date
4. We compare the extracted date value from the text box with today's date using the < operator.
5. If the date in the text box is earlier than today's date, the rectangle fill color will be set to red (Color.Red); otherwise, it will be set to blue (Color.Blue).