I need to remove time portion of date time or probably have the date in following format in object form not in the form of string.
object
string
Declare the variable as a string.
example :
public string dateOfBirth ;
then assign a value like :
dateOfBirth = ((DateTime)(datetimevaluefromDB)).ToShortDateString();