java: improved swift date parsing to be safe (in case) + minor cleanups