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
The easiest way is something like this and it will return only the date:
var date = DateTime.Now.ToShortDateString();