Add returnType and returnFormat parameters

Allow output to be parsed and formatted with momentjs using returnFormat pattern.