another fix to date regexp