asp.net - Format this datetime without seconds or AM/PM -
i have property set "datetime?" this:
public overridable property mydatetime datetime? i'm trying hours , minutes without seconds , without or pm.
i tried this:
mydatetime.value.timeofday.tostring that gives me hours, minutes, , seconds without or pm
and tried this:
mydatetime.value.toshorttimestring this gives me hours , minutes, gives me or pm.
is there way format looks this?
9:10 or
2:40 thanks
Comments
Post a Comment