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
in my experience none of the said solutions worked, maybe because I wanted to remove the time from extracted date from database, but the code below worked fine:
var date = target_date.Value.ToString("dd/MM/yyyy");