Results 1 to 2 of 2
  1. #1
    jboy is offline Member
    Join Date
    Aug 2009
    Posts
    56
    Rep Power
    0

    Default How to change the format of date?

    Hi,

    I just have a question of about how to exclude 0 from a date, for example I want the date to be 1/1/2000 instead of 01/01/2000.
    I am using the class
    Java Code:
    private SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
    Thanks,

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

Similar Threads

  1. Date Format
    By learnspring in forum New To Java
    Replies: 1
    Last Post: 11-16-2008, 05:16 PM
  2. how to convert date format
    By saran123 in forum New To Java
    Replies: 5
    Last Post: 10-16-2008, 06:10 PM
  3. Simple Date Format
    By arimakidd in forum Java Applets
    Replies: 1
    Last Post: 09-29-2008, 04:46 AM
  4. How to format the date in particular pattern
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 10-04-2007, 09:28 PM
  5. problems with Date format
    By tommy in forum New To Java
    Replies: 1
    Last Post: 07-25-2007, 08: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
  •