Link to home
Start Free TrialLog in
Avatar of tmajor99
tmajor99

asked on

JavaScript Date Format

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.
SOLUTION
Avatar of [ fanpages ]
[ fanpages ]

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial