I have string var value 12/31/2018 00:00:00 now I want 1218 i.e MMYY
First parse the string as a
DateTime variable. This can be done using
DateTime.ParseExact. Then you can do
myDateTimeVariable is whatever you called your variable.
@DanielMitchell I try this but I got value mmyy as mentioned in attachment
currentdate isn’t a
DateTime, it’s a
@DanielMitchell thank you very much its work
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.