| Summary: | Have no clue how DATE should display but majorly different from RBD | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | broy2 |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mheitz |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Here's the comment on the function that converts dates to strings.
/**
* {@Operation widen} Converts a date to a string in the format "MM/dd/yyyy".
* Leading zeros are included in the string, so April 1st in the year 9 A.D. is
* converted to "04/01/0009".
*/
You're right, we're doing it completely wrong. This is the problem for which I originally opened bug 355782.
*** This bug has been marked as a duplicate of bug 355782 ***
Changed status to remind me to verify when 355782 is fixed. Brenda, this got into the Closed state because that's what happens by default when I click Mark As Duplicate. From now on I'll try to remember to make it Resolved instead. I'm switching this from Reopened to Resolved so we don't have two active defects for the same problem. Hopefully having this in Resolved not Closed is good enough to remind you that it needs to be verified. *** This bug has been marked as a duplicate of bug 355782 *** OK |
In RBD, the following is displayed when the program is run: 2/1/99 2/1/99 program fromGregorian type BasicProgram {} myDate DATE; myString string; i int = 19990201; function main() myDate = dateTimeLib.dateValueFromGregorian(i); myString = myDate; SysLib.writeStdout(myDate); SysLib.writeStdout(myString); end end In EDT, I get the following when the same code is run: 1999-02-01 00:00:00.000000 1999-02-01 00:00:00.000000 program fromGregorian type BasicProgram {} myDate DATE; myString string = "04231981"; i int = 19990201; function main() myDate = dateTimeLib.dateFromGregorian(i); myString = myDate; SysLib.writeStdout(myDate); SysLib.writeStdout(myString); end end