Just having a bit of an issue with date conversion. I am trying to ensure that when I get a user specified date I am able to input it into expedia in the correct format. If you have a look at my code you are able to see I have used the DateTime.ParseExtract function but am still having no luck. Personal_Travel_Assistant.zip (17.1 KB)
Below is the error I am receiving
Hello! Can you give some more details about how that string looks like? Or are you saying that the user can input the date in any format and you have to be able to determine in what format the date is?
You should request an especific format in the input message that you have have. Something like “The format must be dd/MM/yyyy for example 22/10/2022” and use a Regex expresion after that, and if the text quote by the user has not the format you can put a message box and request the date again. Thats what pages does to us when we try to buy o what we want to do. The problem that i see, is if someone gives you a date like “08/09/2019” and is in format MM/dd/yyy you will cant know if it is happening.