I am trying to obtain the date from CLI. However, I am first getting it as a string because the program misbehaves when I input in some invalid value e.g., a string while using