Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
renjithpl
Specialist
Specialist

If Date equals to today() then change background color

Hi All,

I have a date field and when any of the date equals today(), the the background color should change in my straight table.

i have tried something like this, but no output.

=if(DateRecieved=Date(today(), 'MM-DD-YYYY'), RGB(80, 240, 60))

Regards

Renjith

1 Solution

Accepted Solutions
its_anandrjs

Hi,

Yes Right but it is strange, you need to put the

Floor(DateRecieved) in place of DateRecieved beacaue the field is different and you need to get

to the nearest multiple of base of the field then you get the correct result as kaushik says.

See the attached sample file.

Regards

Anand

View solution in original post

6 Replies
its_anandrjs

Hi,

You need to put this code

=If(DateRecieved = today() ,RGB(80, 240, 60))

in the Background option of the straight table then you abe to check it want to know that where you put this code, please confirm it.

Regards

Anand

SunilChauhan
Champion
Champion

please see the attcahed file

Sunil Chauhan
its_anandrjs

Hi,

See the sample file to clear the fuctionality of background color by the code

=If(Date=Date(Today(),'MM-DD-YYYY'),RGB(80, 240, 60))

See the attached sample file.

Regards

Anand

renjithpl
Specialist
Specialist
Author

hi Anand,

Please look in to my attached applilcation, its in the first thread.

Regards

Ranjith

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    Put this expression in background color

    If(floor(DateRecieved)=Today(),RGB(80, 240, 60))

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
its_anandrjs

Hi,

Yes Right but it is strange, you need to put the

Floor(DateRecieved) in place of DateRecieved beacaue the field is different and you need to get

to the nearest multiple of base of the field then you get the correct result as kaushik says.

See the attached sample file.

Regards

Anand