Xbasic

A5_RFC822DATE Function

Syntax

Formatted_Date_Time as C a5_rfc822date(* date )

Formatted_Date_Time as C = A5_RFC822DATE( Character_Date_Time as C )

Formatted_Date_Time as C = A5_RFC822DATE( Time_Date as T )

Arguments

Formatted_Date_Time

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

Character_Date_Time

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

date

A date time value.

Description

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

Discussion

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

Example

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

See Also