Results 1 to 2 of 2
- 10-05-2008, 07:23 AM #1
Member
- Join Date
- Aug 2007
- Posts
- 40
- Rep Power
- 0
Default/System Date Format Pattern?
How to get system default date format which is defined in Regional Setting of Control Panel.
We can get an instance of DateFromat using DateFormat.getDateInstance(DateFormat.SHORT) but problem is that there is no toPattern() exist in class DateFormat.
However toPattern() exist in class SimpleDateFormat but there is no costructor like SimpleDateFormat(DateFormat)
So please advise me, how can I get system short date format pattern?
Thanks
GAJESH TRIPATHI
- 10-05-2008, 07:34 AM #2
Member
- Join Date
- Aug 2007
- Posts
- 40
- Rep Power
- 0
SimpleDateFormat.set2DigitYearStart(...)
Hi
I want that my formatted text fied automatically parse "1.05.08" as "01.05.2008" And "27.3.93" should be parse as "27.03.1993" i.e. 2-digit year should be parse from 1970 to 2069
I have found solution in Sun JAVA-Docs but It's not working so please proper guide me.
See the attachment...
Thanks
Similar Threads
-
Simple Date Format
By arimakidd in forum Java AppletsReplies: 1Last Post: 09-29-2008, 04:46 AM -
[SOLVED] Update jTable with new data (especially Date value Format)
By gustio in forum New To JavaReplies: 2Last Post: 08-12-2008, 12:26 PM -
How to format the date in particular pattern
By Java Tip in forum java.textReplies: 0Last Post: 04-04-2008, 02:35 PM -
How to format the date in particular pattern
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:28 PM -
problems with Date format
By tommy in forum New To JavaReplies: 1Last Post: 07-25-2007, 08:38 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks