HOW TO GET THE DATE FORMAT

I have date format MM/dd/yyyy I need to convert that into MM/dd/yy how to do this

grafik

Hi @Gayathri_Mk

You can use the following expression in the Assign activity:

formattedDate = DateTime.ParseExact(dateString.ToString,"MM/dd/yyyy", Globalization.CultureInfo.InvariantCulture).ToString("MM/dd/yy")

Here, dateString is your variable with the format MM/dd/yyyy.

Hope this helps,
Best Regards.

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