Try:
Calendar yurCalendar = new Calendar();
System.out.println(yurCalendar.get(Calendar.DAY_OF_YEAR));
Christian Straight
Inovant/Visa
-----Original Message-----
From: Antillon Reyes Rafael Martin - EXT [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 3:18 PM
To: [EMAIL PROTECTED]
Subject: getting the day of the year.
Helo everyone:
How do i get the day of the year?
example, today is day 57.
Thanx in advance.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets