While working in a project, I got stuck in a issue in which I needed a generic function that converts the date string in any format to a desired date format. The solution which I got is as follows: ...