I got a qns how can get today date only and time only not together?
How can add today to 5 day later to show user want the item will come?
How can get today date only and time only not together?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 21, 2013, 5:57 AM EDT
string date=DateTime.Now.ToString("dd/MM/yyyy");
Label1.Text = date;//here showing it in a label
for only tme:
string time = DateTime.Now.ToString("HH:mm:ss tt");
Label1.Text = time;//here showing it in a label
Tan Kai Kai114 reputationPosted Jul 28, 2013, 5:29 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jul 28, 2013, 6:15 AM EDT
DateTime dt = DateTime.Today.AddDays(5);
Label2.Text = dt.ToString("dd/MM/yyyy");