Format date to DDMMYY with a text colour formula field
- Asked by Sarah
- a month ago
Hi
I have created a formula text field to reference a date field. The formula below colours the new field depending on whether certain conditions are met or not. My dates in the App are all set to DDMMYY however in this new field the colours are fine but the date displays as MMDDYY and I can't get it to change to DDMMYY. I have tried to add ToFormattedText(Date(2000,1,30),"DDMMYY" to my formula, however it keeps erroring and I'm not sure where in my formula to put it so it works. I'm also not sure whether I need to change the 200,1,30. Any ideas?
Many thanks
Sarah
If(not IsNull([Launch Date Actual]), "<div style=\"background-color:#FFFFFF;\">"& [Launch Date Forecast]&"</div>",
If([Launch Date Forecast]<Today(), "<div style=\"color:white; background-color:#FF6A6A;\">"& [Launch Date Forecast]&"</div>",
If([Launch Date Forecast]=Today(), "<div style=\"background-color:#FFE75F;\">"& [Launch Date Forecast]&"</div>",
If([Launch Date Forecast]>Today(), "<div style=\"background-color:#98FB98;\">"& [Launch Date Forecast]&"</div>",
))))))