Need help with a simple JavaScript that will reformat a date string. I currently have the variable containing a date string in CCYY-MM-DD format. I need to change this format to mm/dd/ccyy.
var revision = node.getRevision();
var MyDate = node.getValue("UPDT_DATE").GetSimpleValue(ScriptHelper.getISODate(revision.getCreated()));
//MyDate is formatted as CCYY-MM-DD. I need to change to MM/DD/CCYY.
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.