Input Dialog Date format

Hello guys i want to get “MMMM” format from the date entered in the input dialog box

Iam entering the date in input dialog activity as (“dd/MM/yyyy”)

So when i use this exp (CDate(MyDate).ToString(“MMMM”))
to get the month iam getting error

image

So how could i get the month from the entered date

you have to convert string into date format.

please search how to convert string into date

Hi,

Can you try the following expression instead of CDate?

DateTime.ParseExact(MyDate,"d/M/yyyy",System.Globalization.CultureInfo.InvariantCulture)

Regards,

Got the solution by using this exp (DateTime.ParseExact(MyDate,“d/M/yyyy”,System.Globalization.CultureInfo.InvariantCulture).ToString(“MMMM”))

@Yoichi - Arigato

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.