Fixed add device script, and createProfile script

Formatting of date was previously incorrect in createProfile