Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Convert String to date in saved search
Hi, Experts,
Here 1 question in saved searches,
lotnumber is string (example: WSA-20231025-20211025) , 20231025 is the product expired date which is 25-10-2023 and 20211025 is our produced date, we need to compare the production date with current date for the stock aging report in saved searches.
Formula(date)
TO_DATE(REGEXP_SUBSTR({lotnumber},'[^-]+$'),'YYYYMMDD')
Result:
ERROR: Invalid Expression
Any help would be greatly appreciated.
Many thanks in advance
Kind regards
Bee Yook
Tagged:
0