SiebelDate Function

Action

Reformats a date string value in the same way as the Siebel 7 Web client does for the US-English locale.

Include file

Siebel7Web.bdh

Syntax

SiebelDate( inout sDate : string) : string;

Return value

Date string reformatted the same way as the Siebel 7 Web client does.

Parameter Description
sDate Date string in the format as used in Siebel 7 server responses.

sDate must be a date string in the format M/D/Y, where M (month) must be in the range 1-12, D (day) must be in the range 1-31 and Y(year) can be any value. Leading zeros are allowed and usually present in date values returned from the server. The reformatted return value is in the same format, however leading zeros are removed.

Example

transaction TDate  
begin
    Writeln(SiebelDate("01/01/2004"));
    Writeln(SiebelDate("1/1/2004"));
    Writeln(SiebelDate("09/09/2004"));
    Writeln(SiebelDate("10/01/2004"));
    Writeln(SiebelDate("01/10/2004"));
    Writeln(SiebelDate("12/31/2004"));
  end TDate;

Output

1/1/2004
1/1/2004
9/9/2004
10/1/2004
1/10/2004
12/31/2004