| Summary: | Java string to date conversion is uisng YYYYmmdd egl.lang.EDate.egl specifies MMddyyyy | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mheitz |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
I fixed this problem, but your testcase will fail due to a different bug. The bug 355782 - Dates are converted to strings as if they were timestamp("yyyyMMdd") verified Closing this defect. |
I expected this to work: qDay date = "06/28/1969"; not this: qDay date = "19690628"; ================= EDT CODE ================== program dateTester type BasicProgram {} function main() creation(); end function creation() // This should work try expecting string = "06/28/1969"; qDay date = expecting; actual string = qDay; If (actual == expecting) syslib.writeStdOut("MM/DD/YYYY Equal"); else syslib.writeStdout("MM/DD/YYYY Different"); end onException(oops TypeCastException) Syslib.writeStdOut(" Can't create date using MM/DD/YYYY"); creationworks(); end end function creationWorks() // this shouldn't work try expecting string = "19690628"; qDay date = expecting; actual string = qDay; If (actual == expecting) syslib.writeStdOut("YYYYMMDD Equal"); else syslib.writeStdout("YYYYMMDD Different"); end onException(oops TypeCastException) Syslib.writeStdOut(" Can't create date using YYYYMMDD"); end end end