天软金融分析.NET函数大全 > TSL函数 > 基础函数 > 日期时间 > 常用日期时间函数

DateTimeToInternetStr    

简述

将日期转为Internet格式字符串Friday, 13Jun2008 22:27:04 +0800,当ToGMT为真时,采用GMT时间格式。
定义
DateTimeToInternetStr(Date:TDateTime;toGMT:Boolean):String;
参数
名称类型说明
DateTDateTime日期时间类型,用于转换的时间
ToGMTBoolean布尔,是否采用GMT时间格式
返回String
字符串
  • 范例


      EndT:=strtodatetime('2014-01-01 10:00:00');
      datetime:=DateTimeToInternetStr(EndT,0);
      Return datetime ;//输出Wed, 1 Jan 2014 10:00:00 +0800
相关