This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 142619 - Convert value for DATE types to ISO format
Summary: Convert value for DATE types to ISO format
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Shansi 11
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-01 18:42 UTC by Roman Mostyka
Modified: 2009-02-19 20:38 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-08-01 18:42:46 UTC
1. Connect to Java DB 'table'.
2. Rightclick table 'trip' and choose "View Data...".
3. Press "Insert Record" button.
4. Add necessary data and set value for field with type TIMESTAMP (or DATE) value as it shown in results for other records.

Result: "Enter valid data ..." message appears.
Comment 1 _ ahimanikya 2008-08-01 19:11:48 UTC
Use ISO Date format, it should work; 

Time:
HH:mm:ss

Date:
yyyy-MM-dd
MM-dd-yyyy

DateTime:
yyyy-MM-dd HH:mm:ss.SSS
yyyy-MM-dd HH:mm:ss
Comment 2 Roman Mostyka 2008-08-04 10:35:27 UTC
I made this issue an ENHANCEMENT.
It will be much easier for customers to enter value as they see it in result. So it will be better to implement
converting of date types to ISO date format.
User enters value in format, which is displayed in results, and then this format should be converted to ISO date.
In this case it will be much more WYSIWYG.
Comment 3 _ ahimanikya 2008-08-28 20:32:13 UTC
This behavior is similar to what you see in Excel or Open Office. I don't think there is any easy way to do this. Also,
I don't think its worth spending time to parse the formatted datetime string. 
Comment 4 _ ahimanikya 2008-08-29 06:41:54 UTC
I think what we are doing is correct, there is no need to enhance this further. 
Comment 5 Roman Mostyka 2008-08-29 14:31:52 UTC
Ahi, you can spend time on this later, probably not for 6.5. And it doesn't matter that Excel and Open Office behave
similar. We should make better IDE and only in this case customers will choose our product.
And note, this is an ENHANCEMENT, not a DEFECT.
If you totally disagree, please send an email to alias and ask if this is good enhancement. If most of the people think
that it's bad idea, then I won't insist anymore. ;)
Comment 6 _ ahimanikya 2008-08-29 16:47:24 UTC
I do disagree with you, but I will leave this alone. Marking as P4
Comment 7 _ ahimanikya 2008-12-18 12:35:11 UTC
Fixed.
Comment 8 Roman Mostyka 2008-12-18 16:10:56 UTC
Verified with build 081218.