Hema Latha

Hema Latha

  • NA
  • 29
  • 26.6k

Get only date in datetime string.

Mar 3 2015 5:12 AM
Hi,

I have get only date from datetime string means, the code is shown below.

string date= Convert.ToDateTime(dt.Rows[i]["next_pay_date"]).AddDays(-7).ToString();

The date field get "3/7/2015 12:00:00 AM"

But i have get only date means "3/7/2015"

Please help me..

Thanks in advance

Answers (2)