Working with dates and time in WIX Code?

Make a Function that will take a date and return it in the format you need and run all date outputs through that function.