using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RoadFlow.Utility
{
public class DateTimeNew
{
public static DateTime Now
{
get
{
return DateTime.Now;
}
}
///
/// 短日期格式(yyyy/MM/dd)
///
public static string ShortDate
{
get
{
return Now.ToString(Utility.Config.DateFormat);
}
}
///
/// 长日期格式(yyyy月MM日dd日)
///
public static string LongDate
{
get
{
return Now.ToString("yyyy月MM日dd日");
}
}
///
/// 日期时间(yyyy/MM/dd HH:mm)
///
public static string ShortDateTime
{
get
{
return Now.ToString(Utility.Config.DateTimeFormat);
}
}
///
/// 日期时间(yyyy/MM/dd HH:mm:ss)
///
public static string ShortDateTimeS
{
get
{
return Now.ToString(Utility.Config.DateTimeFormatS);
}
}
///
/// 日期时间(yyyy年MM月dd日 HH时mm分)
///
public static string LongDateTime
{
get
{
return Now.ToString("yyyy年MM月dd日 HH时mm分");
}
}
///
/// 日期时间(yyyy年MM月dd日 HH时mm分ss秒)
///
public static string LongDateTimeS
{
get
{
return Now.ToString("yyyy年MM月dd日 HH时mm分ss秒");
}
}
///
/// 日期时间(yyyy年MM月dd日 HH时mm分)
///
public static string LongTime
{
get
{
return Now.ToString("HH时mm分");
}
}
///
/// 日期时间(yyyy年MM月dd日 HH时mm分)
///
public static string ShortTime
{
get
{
return Now.ToString("HH:mm");
}
}
}
}