Hello! Thanks for taking a look. I've tried valiantly to get some Javascript coding to work with Moment.js, but I'm struggling with my incompetency. This is what's going on: I'm receiving a unix timestamp in milliseconds, being passed through a query-string and recorded in a Qualtrics embedded variable. I'm trying to convert that timestamp into: YYYY-MM-DD, so that (hopefully), Qualtrics will read it and treat it as a date. To test it I've been sending in the UNIX: 1516985915307, which should convert to 2018-01-27. However, I get an Invalid Date, output in the embedded variable I'm trying to write the converted date to. <code>Qualtrics.SurveyEngine.addOnReady(function()</code> <code>{</code> <code>var UNIX= Qualtrics.SurveyEngine.getEmbeddedData('UNIX');</code> <code>var dateString = moment('UNIX').format("MM-DD-YYYY");</code> <code>Qualtrics.SurveyEngine.setEmbeddedData('NEW_DATE', dateString);</code> <code>});</co
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.