UnifaceDateTime

Class used to convert date and time values from Java to Uniface and back.

UnifaceDateTime (Stringudate, Stringutime)

Parameters

  • udate—eight-digit string denoting the date in CCYYMMDD format. This string can be null.
  • utime—eight-digit string denoting the time in HHMMSSTT format. This string can be null.

Return Values

UnifaceDateTime returns an object representing a Datetime value. If uDate is null, the returned object is considered a Time value, and if uTime is null, the returned object is considered a Date value. UnifaceDateTime will throw a NumberFormatException if one or more parts of the date or time strings do not contain valid numeric information.

Description

The UnifaceDateTime class is used to specify date and time parameters from Java. The Java UnifaceDateTime object is passed to Uniface as a Java object (IN), and from Uniface to Java as a Java object (OUT). The UnifaceDateTime class is used to handle date and time values. This class encapsulates the individual date and time components and deals with the conversions to and from Uniface.

Methods

UnifaceDateTime Methods

Method

Returns
String dateString() A string representing the date in Uniface format, ‘CCYYMMDD’.
String timeString() A string representing the time in Uniface format, (‘HHMMSSTT’)
String dateTimeString() A string representing the date and time in Uniface format, ‘CCYYMMDDHHMMSSTT’.
int getYear() A four-digit, int value representing the year.
int getMonth() A two-digit, int value representing the month.
int getDate() A two-digit, int value representing the date.
int getHours() A two-digit, int value representing the hour.

int getMinutes()

A two-digit, int value representing the minute.
int getSeconds() A two-digit, int value representing the second.
int getTicks() A two-digit, int value representing the tick.