java.sql.Date is not a real date

These are some readers' responses. Read the full article to see what all the fuss is about.

24 responses

Other comment pages: [1] 2 »

  • Sir,
    i have one doubt, i have get the date from date picker to textbox. That date will converted to SqlDate. But error will be displayed. That error has been optional feature has been not availble. This error has what type of error.? Please send to me.

    saravanakumar | 26 November 2005
  • Mr. Saravanakumar,

    I believe you are from India - Tamilnadu. You need to improve your english.

    acker | 7 February 2006
  • import java.util.*;
    import java.text.*;

    public class ShowToday {
    public static void main(String args[]) {
    ShowToday st = new ShowToday();
    st.demo();
    }
    public void demo() {
    System.out.println(easyDateFormat(”dd MMMMM yyyy”));
    System.out.println(easyDateFormat(”yyyyMMdd”));
    System.out.println(easyDateFormat(”dd.MM.yy”));
    System.out.println(easyDateFormat(”MM/dd/yy”));
    System.out.println(easyDateFormat(”yyyy.MM.dd G ‘at’ hh:mm:ss z”));
    System.out.println(easyDateFormat(”EEE, MMM d, ”yy”));
    System.out.println(easyDateFormat(”h:mm a”));
    System.out.println(easyDateFormat(”H:mm:ss:SSS”));
    System.out.println(easyDateFormat(”K:mm a,z”));
    System.out.println(easyDateFormat(”yyyy.MMMMM.dd GGG hh:mm aaa”));
    public String easyDateFormat (String format) {
    Date today = new Date();
    SimpleDateFormat formatter = new SimpleDateFormat(format);
    String datenewformat = formatter.format(today);
    return datenewformat;
    }
    }

    chukked | 26 August 2006
  • chukked, please elaborate!

    Bennett | 26 August 2006

Other comment pages: [1] 2 »

Post your comment | RSS feed for comments
Close
E-mail It