Xbasic
A5_ANSIDATE Function
Syntax
Formatted_Date_Time as C = a5_ansidate(* date )
Formatted_Date_Time as C = A5_ANSIDATE( Time_Date as T )
Arguments
- Formatted_Date_Time
A date time value in the format: "Day Mon d hh:mm:ss yyyy " ("Tue Mar 30 14:17:02 2004")
- date
A date time value formatted as "mm/dd/yyyy 0h:0m:0s am".
- Time_Date
A date-time value.
Description
Converts a date string to an ANSI C asctime() formatted date (Day Mon d hh:mm:ss yyyy)
Discussion
The A5_ANSIDATE() function takes a date, either as a time or character, and converts it to a string following the ANSI C's ASCTIME() format.
Example
dim t as T t = now() ? a5_ansidate(t) = "Tue Mar 30 11:17:55 2004"
See Also