[JSC] Date parse logic should be less redundant