Xbasic

A5_RFC850DATE Function

Syntax

Formatted_Date_Time as C = a5_rfc850date(* date )

Formatted_Date_Time as C = A5_RFC850DATE( Character_Date_Time as C )

Arguments

Formatted_Date_Time

A date time value in the format: "Weekday, dd-Mon-yy hh:mm:ss GMT" ("Tuesday, 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 850 formatted date (Weekday, dd-Mon-yy hh:mm:ss TIMEZONE)

Discussion

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

Example

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

See Also