Xbasic

A5_RFC1123DATE Function

Syntax

Formatted_Date_Time as C = a5_rfc1123date(* date )

Formatted_Date_Time as C = A5_RFC1123DATE( Character_Date as C )

Formatted_Date_Time as C = A5_RFC1123DATE( Time_Date_Value as T )

Arguments

Formatted_Date_Time

A date time value in the format: "Day, dd Mon yyyy hh:mm:ss GMT " ("Tue, 30 Mar 2004 14:17:02 GMT")

Character_Date

A date time value formatted "mm/dd/yyyy 0h:0m:0s am".

date

*

Time_Date_Value

A date time value.

Description

Converts a date string to an RFC 1123 formatted date (Day, dd Month yyyy hh:mm:ss TIMEZONE)

Discussion

The A5_RFC1123DATE() function takes a date, either as a time or character, and converts it to a string following the RFC 1123 format.

Example

dim t as T
t = now()
? a5_rfc1123date(t)
= "Tue, 30 Mar 2004 16:17:55 GMT"

See Also