added in a helper method for converting moment into a javascript iso datestring