suggest a method to resolve this issue
Assign: Conversion from string "31-03-2022" to type 'Date' is not valid I Need Output as 31-MAR-2022
DateTime.ParseExact(YourStringVar, "dd-MM-yyyy", System.Globalization.CultureInfo.InvariantCulture).toString("dd-MMM-yyyy")
Please do Share the expression and also mention the data type of assigning variable
Usage of the toString method let us derive the resulting datatype: String
Getting It Correctly, Thanks ppr, and also how to Convert 20-05-2022 to 20-MAY-2022
suggest a expression
will be the same approach
prototype it at your end
Meanwhile getting Output I am getting Like this excel…04-07-2022 but actually I need 04-JUL-2022 like this
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.