Made MyDate thread-safe.