Hi can we use a if else condition for a field to get the default values, if so can u correct the below statement.
To get the end date based on today() date
example:
if (substring(today(), 6, 2) = "04" or substring(today(), 6, 2) = "06" or substring(today(), 6, 2) = "09" or substring(today(), 6, 2) = "11") then
concat(substring(today(), 1, 7), "-30")
else if
(substring(today(), 6, 2) = "01" or substring(today(), 6, 2) = "03" or substring(today(), 6, 2) = "05" or substring(today(), 6, 2) = "07"
or substring(today(), 6, 2) = "08" or substring(today(), 6, 2) = "10" or substring(today(), 6, 2) = "12") then
concat(substring(today(), 1, 7), "-31")
else
concat(substring(today(), 1, 7), "-28")
end if
Thanks,
Regards,
Manju