Adjusted DateFormat use in analytics as per @nbradbury's suggestion.