I am trying to convert DateTime format to yyyy-MM-dd format and store it to DateTime object. But it gives me the System DateTime
DateTime
yyyy-MM-dd
We can use the below its very simple.
Date.ToString("yyyy-MM-dd");