adding helper for formatting datetime