Forum Discussion
ChrisChris
7 years agoQrew Assistant Captain
try
If(
[Period Tested]=ToDate("01-01-2016"),1,
[Period Tested]=ToDate("02-01-2016"),4
)
- _anomDiebolt_7 years agoQrew Elite
If(
[Period Tested] = Date(2016, 1, 1), 1,
[Period Tested] = Date(2016, 2, 1), 4
)
Date(2000, 1, 10) returns the date January 10, 2000 - ChrisChris7 years agoQrew Assistant CaptainIf [Period Tested] is a Date/Time field, you'll need to use the ToDate() function on [Period tested] too.
- SammySSammyS7 years agoQrew CadetThanks Chris and Dan, the ToDate() function worked fine in this scenario!