Hey,
I need to get day month and year from date of format mm/dd/yyyy
Help!!!
Hi,
Can you try the following?
arrStr = yourString.Split("/"c)
Then,
arrStr(0) returns month (as String)
arrStr(1) returns day (as String)
arrStr(2) returns year (as String)
Or
dateTimeVar = DateTime.Parse(yourString)
Then
dateTimeVar.Year retunrs year (as Int32)
dateTimeVar.Month retunrs month (as Int32)
dateTimeVar.Day retunrs day (as Int32)
Regards,
i want it like Monday,september 27,2021
is it possible to get this way?
Hi,
How about the following expression?
DateTime.Parse("09/27/2021").ToString("dddd, MMMM dd,yyyy")
Regards,
Hi,
What do you mean? DateTime.Parse converts String to DateTime. I think it will help you. If I have misunderstanding, please let me know.
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.