I'm trying to set an expiration date field. If da...
# general
a
I'm trying to set an expiration date field. If date is before December 01 of current year, set expiration date to December 31 current year. If date is after December 01 of current year, set expiration date to December 31 of next year.
s
How are you trying to set it (workflow, script, etc) and what is the context of when it gets set.
a
Workflow after field edit
s
You should be able to get it to work with a CASE WHEN formula https://www.abaci-us.com/netsuite-to-date-to-char-date-functions/
There is a page about how to extract pieces of date information from the field values
a
Thanks so much, I'll check it out!