IBM Support

Invalid Date Format Exception when system date is formatted to 'DD-MMM-YY'

Troubleshooting


Problem

The Rational Portfolio Manager Client will raise an "Invalid Date Format" Exception message when the system date format is set to 'DD-MMM-YY' (for example, '19-Oct-09'). In fact, this is an issue with any date format that uses the month name instead of a numeric abbreviation.

Symptom

The Rational Portfolio Manager Client raises an "Invalid Date Format" exception while attempting to perform certain operations, for example opening the Timesheets view.

Cause

The Delphi programming language, in which Rational Portfolio Manager's rich client is written, is limited in the sense that its standard library doesn't implement conversion from date formats where a nonnumeric representation of the day, year or month are used. Delphi only supports date formats in which the day, year and month are all represented numerically.

Diagnosing The Problem

If you see an Invalid Date Format exception while using Rational Portfolio Manager, check the system's current Short Date Format in Control Panel's "Regional and Language Options". Verify that the current Short Date Format is set to "DD-MMM-YY", or any other format which includes a nonnumeric representation of the current month (or day).

Resolving The Problem

Open the "Regional and Language Options" dialog from the Control Panel. Look at the value in the Short Date field. If it contains a nonnumeric representation of the month, or day, click the "Customize..." button. Navigate to the "Date" tab, and select a date format from the "Short date format" drop-down box that contains only numerals (for example, "M/d/yyyy").

[{"Product":{"code":"SSRR2G","label":"Rational Portfolio Manager"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.1;7.1.0.1;7.1.1.1;7.1.1.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Product Synonym

RPM;Rational Portfolio Manager

Document Information

Modified date:
23 June 2018

UID

swg21407531