Avoiding toDateString
Only enabling edit mode once