How to pick only date from datetime

How to pick only date from today's date in C#.Net?
Posted by Prince Mahajan 3/23/2014 5:01:30 PM
Total Answers : 1
Answer 1
You can get date from DateTime like below :
string get_date =  DateTime.Now.ToShortDateString();
or
string get_date = DateTime.Now.Date.ToString();

Hope this is what you want.
Posted by StepCoder Team 3/25/2014 12:34:51 PM
Post your answer
Preview
Sign in to your account
Your Email : 
Password :   
Forgot your password
Don't have StepCoder account ?
Create a new account
 
Follow me on twitter
About Me
Harpreet Singh
I began programming with C++ when i was 17. Then at the middle of my study .NET came. Then I began to read C# and VB.NET. By the time i learnt SQL and ASP.NET, and developed some websites such as news portals that are active now. Currently i am running my own Software company.
Answer these questions! If you know the answer.