Hi Thanks for the reply. But Here you are using DateTime.Now.so it is working fine but my case i am getting the value from DB2 in the format CYYMMDD.
i.e for example 0170312 then first i have to convert this string value to Date.
this string contains 7 digits and converting itself failed....
User Profile
Collapse
-
sandhya123 started a topic how to convert CYYMMDD date format to asp.net dateformat YYYY-MM-DD in asp.net usingin C Sharphow to convert CYYMMDD date format to asp.net dateformat YYYY-MM-DD in asp.net using
I am getting date from DB2 in CYYMMDD format 1234567,i have to convert this into normal asp.net date using C#.
No activity results to display
Show More
Leave a comment: