I have a string “05/18/2021” and on converting it to DateTime it becomes
[05/18/2021 00:00:00] which is in MM/dd/yyyy hh:mm:ss format.
I wish to get a DateTime results in dd/MM/yyyy format WITHOUT converting it to string.
The output has to be DateTime itself → [18/05/2021]
Also, there are times when the string is of the format “05-APR-2021”, which also has to be converted to [05/04/2021]
Help would be most appreciated, thanks in advance!