Results 1 to 3 of 3

Thread: Days in Java

  1. #1
    Join Date
    Dec 2006
    Posts
    6

    Default Days in Java

    how can get the day name of today. e.g: tuesday ?
    i try to use java.util.date - but i'm having trouble to retrieve the day... :(

    thank you very much

  2. #2
    Join Date
    Nov 2007
    Posts
    6

    Default

    try it

    <java>

  3. #3
    Join Date
    Nov 2007
    Posts
    6

    Default

    java.util.Date date1 = new java.util.Date();
    String date2 = new java.sql.Date(date1.getTime()).toString();

Bookmarks

Posting Permissions

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