After converting the text file the date is coming like “210809”(yearMonthDay), but I need in the format “09-Sep-21” can anyone please guide me to resolve the issue .
Thanks.
After converting the text file the date is coming like “210809”(yearMonthDay), but I need in the format “09-Sep-21” can anyone please guide me to resolve the issue .
Thanks.
Hi,
Try this method. Assign this expression to a string variable,
DateTime.ParseExact(“210809”,“yyMMdd”,system.Globalization.CultureInfo.InvariantCulture).ToString(“dd-MMM-yy”)
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.