您好我有数据库日期被存储在以下格式:2014年4月2日00:00:00如何把字符串格式的查询字符串
现在我需要通过消除零检索此日期使用以下格式的字符串格式: 04/02/2014。
下面是我使用的检索日期我的asp.net mvc的代码:
if (scheduleresults.schedule_StartDate != null && scheduleresults.schedule_starttime != null)
{
sbs.Append("<td>" + scheduleresults.schedule_StartDate + scheduleresults.schedule_starttime + "</td>");
}
在上面的代码中,开始日期中包含日期。
我如何把上述代码的字符串格式?