Forum Stats

  • 3,686,902 Users
  • 61,168 Discussions
  • 206,741 Comments

Discussions

Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now!
RUN, DON’T WALK...Registration for #SuiteWorld 2022 is officially OPEN! This special early bird price won’t last long, so make sure you don’t miss out: https://lnkd.in/gGRN78A3
YOUR VOICE MATTERS! VOTE FOR OUR NEXT WEBINAR TOPIC NOW.
Click on this link for the poll.

Adding Date Format to a Formula

edited Jan 3, 2020 12:55AM in Search / Reporting 5 comments

I created a workflow that populates a revenue recognition start/end date line based upon the transaction date. I tested the formula via saved search it works properly, but when I run it through the work flow I get an error message saying that the date is not in the proper format. The line field is MM/DD/YYYY and it seems to be converting it to a YYYY/MM/DD format. How do I add to my formula to ensure that the date format stays as MM/DD/YYYY? Below is the formula I am using.

CASE WHEN (TO_CHAR({trandate}, 'DD')) < '15' THEN TO_DATE(concat(CONCAT(TO_CHAR({trandate}, 'MM'), '15'), TO_CHAR({trandate}, 'YYYY'))) ELSE LAST_DAY{trandate} END

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

This Week's Leaders

This Month's Leaders

All Time Leaders