Join Slack
Powered by
if value of period is reliably a date string (even...
# suitescript
d
dbarnett
10/15/2020, 4:14 PM
if value of period is reliably a date string (even as just 'Mar 2020') and/or you are checking for that first, you could just do
new Date(period).getMonth() + 1
¯\_(ツ)_/¯
👍 2
Open in Slack
Previous
Next