Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2007
    Posts
    45
    Rep Power
    0

    Default 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

  2. #2
    Join Date
    Aug 2007
    Posts
    45
    Rep Power
    0

    Default 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
    Attached Files Attached Files

Similar Threads

  1. Simple Date Format
    By arimakidd in forum Java Applets
    Replies: 1
    Last Post: 09-29-2008, 05:46 AM
  2. Replies: 2
    Last Post: 08-12-2008, 01:26 PM
  3. How to format the date in particular pattern
    By Java Tip in forum java.text
    Replies: 0
    Last Post: 04-04-2008, 03:35 PM
  4. How to format the date in particular pattern
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 10-04-2007, 10:28 PM
  5. problems with Date format
    By tommy in forum New To Java
    Replies: 1
    Last Post: 07-25-2007, 09:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •