static DateTime PA_CDate(object Expression)

来源(www.asm32.net)

static DateTime PA_CDate(object Expression) {...}
    static DateTime PA_CDate(object Expression) {
        return DateTime.Parse(Expression.ToString(),
            System.Globalization.DateTimeFormatInfo.InvariantInfo,
            System.Globalization.DateTimeStyles.AdjustToUniversal
            // AdjustToUniversal(本地时间) AssumeUniversal(本地时间+8)
        );
    }

Link: http://www.asm32.net/article_details.aspx?id=4414


浏览次数 87 发布时间 2009-02-11 18:39:21 从属分类 asp.net(C#) 【评论】【 】【打印】【关闭
 
| www.asm32.net | 2006版 | 资料中心 | linux | asm/asm32 | C/C++ | VC++ | java | Python | 书签 | ASP.Net书签 | 京ICP备09029108号-1