Always use largest prefix match
Use the largest possible JavaScript date in Java code