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
Need Date() in mm/dd/yyyy format
Heya....I'm not a programmer at all, but I do manage to muddle through some simple stuff to create useful scripts for our netsuite users. Currently, I'm looking to fill in a date (format needs to be mm/dd/yyyy) when a custom button is pushed, but when I use:
nlapiSetFieldValue ('custbody_date_field', Date());
It returns a date along the lines of Wed June 4, 2008 10:35:22.
Is there a simple way to get the proper format for the current date into this field? I'm sure this has been covered somehwere and is likely very simple, but I haven't been able to get it to work (trying things like SimpleDateFormat seemed to break the script but I may be doing it wrong).
0