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
If you are converting it to string, you can easily do it like this.
I'm taking date as your DateTime object.
date.ToString("d");
This will give you only the date.