c# - Datetime Format to Date -
how convert this?
public datetime date { get; set; } i need display date.
please 1 convert date only
i need display date.
the datetime structure has numerous ways accomplish this, commonly .toshortdatestring() , .tolongdatestring():
var displaydate = date.toshortdatestring(); for further customizations, can supply a formatting string the .tostring() method.
Comments
Post a Comment