User Activity

I was recently working on a task where I needed to randomize dates in JavaScript and convert those JavaScript date objects into a format I could insert into a ServiceNow Date/Time Field. I wrote the function below which takes a JavaScript date object...