Previous Next

Create( ) method (DATETIME)

(Windows only; GUI for .NET only)
Use this set of Create( ) method overloads to initialize DATETIME values in ABL.
Note:
Return type:
Access:
Applies to:
 
Syntax 
DateTimeHelper:Create ( method-parameters )
method-parameters
A CHARACTER expression that contains one or more parameters for this method (based on the method overload).
Table 129 describes the Create( ) method overloads for initializing DATETIME values.
 
Create( INPUT ticks AS INT64 )
Create( INPUT ticks AS INT64,
        INPUT kind AS System.DateTimeKind )
Create( INPUT year AS INTEGER, 
        INPUT month AS INTEGER, 
        INPUT day AS INTEGER )
Create( INPUT year AS INTEGER, 
        INPUT month AS INTEGER, 
        INPUT day AS INTEGER,
        INPUT calendar AS
           System.Globalization.Calendar )
Create( INPUT year AS INTEGER, 
        INPUT month AS INTEGER, 
        INPUT day AS INTEGER, 
        INPUT hour AS INTEGER, 
        INPUT minute AS INTEGER, 
        INPUT second AS INTEGER )
Create( INPUT year AS INTEGER, 
        INPUT month AS INTEGER, 
        INPUT day AS INTEGER, 
        INPUT hour AS INTEGER, 
        INPUT minute AS INTEGER, 
        INPUT second AS INTEGER,
        INPUT calendar AS
           System.Globalization.Calendar )
Create( INPUT year AS INTEGER, 
        INPUT month AS INTEGER, 
        INPUT day AS INTEGER, 
        INPUT hour AS INTEGER, 
        INPUT minute AS INTEGER, 
        INPUT second AS INTEGER, 
        INPUT kind AS System.DateTimeKind )
Create( INPUT year AS INTEGER, 
        INPUT month AS INTEGER, 
        INPUT day AS INTEGER, 
        INPUT hour AS INTEGER, 
        INPUT minute AS INTEGER, 
        INPUT second AS INTEGER, 
        INPUT millisecond AS INTEGER )
Create( INPUT year AS INTEGER, 
        INPUT month AS INTEGER, 
        INPUT day AS INTEGER, 
        INPUT hour AS INTEGER, 
        INPUT minute AS INTEGER, 
        INPUT second AS INTEGER, 
        INPUT millisecond AS INTEGER,
        INPUT calendar AS
           System.Globalization.Calendar )
Create( INPUT year AS INTEGER, 
        INPUT month AS INTEGER, 
        INPUT day AS INTEGER, 
        INPUT hour AS INTEGER, 
        INPUT minute AS INTEGER, 
        INPUT second AS INTEGER, 
        INPUT millisecond AS INTEGER,
        INPUT kind AS System.DateTimeKind )
Create( INPUT year AS INTEGER, 
        INPUT month AS INTEGER, 
        INPUT day AS INTEGER, 
        INPUT hour AS INTEGER, 
        INPUT minute AS INTEGER, 
        INPUT second AS INTEGER, 
        INPUT millisecond AS INTEGER,
        INPUT calendar AS
           System.Globalization.Calendar,
        INPUT kind AS System.DateTimeKind )
The following example uses this method to initialize a DATETIME variable with the date, July 28, 1986, and then displays the result:
 
USING Progress.Util.* FROM ASSEMBLY.
 
DEFINE VARIABLE aDateTime AS DATETIME NO-UNDO.
 
aDateTime = DateTimeHelper:Create( 1986, 7, 28 ).
 
Display aDateTime.
See also:

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.