Hi,
I want to get date in format like dd.MM.yyyy with input dialog. When i use default datetime variable i just can get MM.dd.yyyy
That was my first question. Secondly i have to check if input format different then dd.MM.yyyy
Thanks for any help.
Hi,
I want to get date in format like dd.MM.yyyy with input dialog. When i use default datetime variable i just can get MM.dd.yyyy
That was my first question. Secondly i have to check if input format different then dd.MM.yyyy
Thanks for any help.
Hi @ercanebiler,
You can use the following method to convert any format of date to dd.MM.yyyy. datetime.tryparseExcat(date_String,{“dd.MM.yyyy”,“MM.dd.yyyy”},nothing,nothing).tostring(“dd.MM.yyyy”)
in the above expression, i used two formats, You can use any number of formats as well.
Thanks and Regards,
P.Ajithkumar
I couldn’t do it. Can you type the code for my case? Just trying to change default format of datetime variable which is MM/dd/yyyy to dd.MM.yyyy
When i type to result of input dialog a default datetime variable i cant give a date like 17.09.2019 It’s throwing error.
I did it.
DateTime.ParseExact(dateST.ToString(),“dd.MM.yyyy”,Globalization.CultureInfo.InvariantCulture).ToString(“MM/dd/yyyy”)
Then I converted with this;
Convert.ToDateTime(formattedDate)
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.