/// <summary>
/// 时间格式转换 将前台json时间格式化("\\/Date(1278903921551)\\/";)
/// </summary>
/// <returns></returns>
public static DateTime FormatDate(string date)
{
//string dateString = "\\/Date(1278903921551)\\/";
string dateString = date;
int startPos = dateString.IndexOf("(") + 1;
int endPos = dateString.LastIndexOf(")") - 1;
long dateNumber = long.Parse(dateString.Substring(startPos, endPos - startPos + 1));
long beginTicks = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).Ticks;
DateTime dateValue = new DateTime(beginTicks + dateNumber * 10000);
return dateValue;
}