Fixing edit date field