Answer: Suppose i have Date value as
19/01/2014 12:15:36
And i want only 19/01/2014. So i will use ToString method of DateTime object to convert date into specific format as
dt.ToString("dd/MM/yyyy")
Output would be:19/01/2014
Asked In: Many Interviews |
Alert Moderator