renamed constants class. Also centralized date format in a server constant to avoid errors in pattern.