Hi,
Please help me to convert date format…
I used in put variable of string 2020-08-1
I want to extract only 1 from that…I am try convert date but not getting proper output…
Please help me to solved this…
1 Like
I want to extract only 1 from that means only date
1 Like
Hello @Shubham_Akole,
Im not quite getting you, can you explain whats the issue??
If you just want to extract date from given format then u can use
String_Var=“2020-08-1”
Use
String_Var.split("-"c)(2)
Hi,
Use below query
DateTime dt=DateTime.ParseExact(dateString, "yyyy/MM/d", CultureInfo.InvariantCulture)
int Day= dt.Day
int Month= dt.Month
int Year= dt.Year
Regards,
Arivu
1 Like