/****************************** * 说明:格式化日期类 * 创建人:龚宇超 * 创建日期:2017-07-24 * 修改人: * 修改日期: * 修改备注: * 版本:1.0.0.0 ******************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Lskj.Control.Model { /// /// 格式化日期类 /// public static class DateFormat { /// /// 空日期 /// private const string mEmpty = " "; /// /// 年-月-日 /// private const string mDate = "yyyy-MM-dd"; /// /// 年-月-日 时:分 /// private const string mDateTimeShort = "yyyy-MM-dd HH:mm"; /// /// 年-月-日 时:分:秒 /// private const string mDateTime = "yyyy-MM-dd HH:mm:ss"; /// /// 时:分:秒 /// private const string mTime = "HH:mm:ss"; /// /// 时:分 /// private const string mShortTime = "HH:mm"; /// /// 年-月 /// private const string mShortDate = "yyyy-MM"; /// /// 说明: /// 创建人:龚宇超 /// 创建日期:2017-07-24 /// 修改人: /// 修改日期: /// 修改备注: /// 版本:1.0 /// /// ControlType 类型 /// 格式化 public static string Format(int typeId) { string formatValue = string.Empty; switch (typeId) { default: case (int)ControlType.LabDate: case (int)ControlType.