We should either make all dates intergers (like they are in most of existing CIO) or do the above struggle...

Different date formats out of the service is smelly.