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
None of the above answers solved my problem on winforms.
the easiest way to reach ONLY date is the simple function in Datetime:
DateTime dt = DateTime.now; String BirthDate = dt.ToShortDateString();
You will only have date in Birthday string .