String data manipulation to date

The ParseExact did work, however it gave errors on some various dates
but i solved that by separating the date into variables and parse them as date with correct format