You can set up the initial properties assigned to new fields you add to a message definition. Date and Time properties apply to a field only if the field's Data Type property is set to one of the following types:
Custom Date & Time
Date
Date & Time
You can set default properties for a single message definition in the New Message Definition wizard when you create a new message definition or globally for your entire workspace by setting message defaults preferences.
Date/time properties
Field | Description | |
---|---|---|
Y2k Cutoff | To specify how a 2-digit year from 00-99 is interpreted as a 4-digit year, enter a number from 0 to 99 inclusive. Any 2-digit year >= the Y2k Cutoff becomes 20XX. Any 2-digit year < the Y2k Cutoff becomes 19XX. For example, if you enter 75, all 2-digit input dates from 75 to 99 are designated as 1975 to 1999 output dates. All 2-digit input dates from 00 to 74 are designated as 2000 to 2074 output dates. | |
Custom Date Time Format | Enter your own custom date/time format or select a predefined template that represents the format of any Custom Date & Time fields you add to the message definition. For example, select yy-MM-dd hh:mm:ss to represent date/time fields formatted similar to 95-12-03 23:30:59. As you enter the Java time pattern string, the bottom status line of the main Sybase WorkSpace window dynamically displays a formatted example date and time. For a summary of codes you can enter in this field, see Supported Date and Time Format Codes. | |
Formatted Date | Click the radio button to select one of the following. The example time is displayed using the selected format.
| |
Date list options | Provides the following options:
|
To migrate a date/time format list from Sybase WorkSpace 1.0:
From the WorkSpace 1.0 workspace directory, navigate to the .metadata\.plugins\com.sybase.jtf.fedit.editor directory.
Save the file CustomDateTimeMasks.txt.
Use the Edit lists option in Sybase WorkSpace 1.5 to import the list.
Following a successful import, the formats are available for use in Sybase WorkSpace 1.5.
Setting Message Definition Preferences
Developing a Message Definition
Default Message Definition Container Properties
Default Message Definition Message Properties
Default Message Definition Field Properties
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com