Skip to main content

[archive] Date-Time Picker issues

  • July 29, 2010
  • 1 reply
  • 0 views

[Migrated content. Thread originally posted on 27 July 2010]

Ok guys I have a strange one that is evidently beyond my abilities...

I have attached a sample project that simply has an entry field to enter a date in YYYYMMDD format and below that is the Date-Time picker field. As an after procedure to the first field the Date-Time Picker value gets reset and displayed. The issue comes with ANY date that is before 1930, the Date-Time picker will not show it correctly???

The screens attached show a good date and a bad date displayed in the sample project.

Any help would be great and much appreciated.

1 reply

[Migrated content. Thread originally posted on 27 July 2010]

Ok guys I have a strange one that is evidently beyond my abilities...

I have attached a sample project that simply has an entry field to enter a date in YYYYMMDD format and below that is the Date-Time picker field. As an after procedure to the first field the Date-Time Picker value gets reset and displayed. The issue comes with ANY date that is before 1930, the Date-Time picker will not show it correctly???

The screens attached show a good date and a bad date displayed in the sample project.

Any help would be great and much appreciated.
Microfocus support has responded to the issue and it is a known issue with a ECN. There is a work around and the email from support is below showing the work around.....



The problem is due to a correction to the default VALUE-FORMAT of the date entry control (ecn3456) that we made back in version 8.0.0. In previous
versions, if the style was LONG-DATE, CENTURY-DATE or TIME, the default VALUE-FORMAT was DAVF-HHMMSS, otherwise it was DAVF-YYMMDD.

The new default VALUE-FORMAT more closely corresponds to the date/time
style, as follows:

SHORT_DATE DAVF_YYMMDD
CENTURY_DATE DAVF_YYYYMMDD
LONG_DATE DAVF_YYYYMMDD
TIME DAVF_HHMMSS

The work around in this case is to explicitly set the value-format. This can be done by adding to the programs a before procedure as follows:

Screen1-De-1-Bef-Procedure.
modify DT-DOB, value-format = DAVF-YYYYMMDD