i have a string var where i have stored one date . it is coming from pdf . But problem is in some output i am getting 20/3/2019 and some other output i am getting 203/2019 or sometime getting 2032019 . thats why i want that string as a date so that i can always get the proper date format .
please help me with some solution .
i am using few code one is
Closing_Date.substring(0,2)+"/"+ Closing_Date.substring(3,2)+"/"+ Closing_Date.substring(6,4)
but it is not working . and also i have been trying to convert it as a date but i failed .
please suggest some solution.
thanks in advance