I just want to extract month and year from this string “2019-03-16T09:53:37.000Z”. Is there any solution for that. Thanks in advance.
Try Below one:
str = “2019-03-16T09:53:37.000Z”
DateTime dt=date.ParseExact("2019-03-16T09:53:37.000Z","yyyy-MM-dd'T'HH:mm:ss.fff'Z'", system.Globalization.DateTimeFormatInfo.InvariantInfo)
@lakshman thank you so much it worked.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.