fixed DateTime::As () template