for better or worse i did this
<%
Calendar cal = Calendar.getInstance();
int dateToday = cal.get(Calendar.DAY_OF_MONTH);
int monthToday = cal.get(Calendar.MONTH) + 1;
int yearToday = cal.get(Calendar.YEAR);
String date = (dateToday < 10) ? ("0" +
String.valueOf(dateToday)):String.valueOf(dateToday);
String month = (monthToday < 10) ? ("0" +
String.valueOf(monthToday)):String.valueOf(monthToday);
String year = String.valueOf(yearToday);
String fullDate = year + month + date;
%>
then converted the String to Integer, then used that to figure time
(20001015-19990910) to figure time in days in whatever app i'm using it on
Lorena Carlo wrote:
> Hi all,
>
> Can anybody tell me which function could to convert a variable from int to
> String on a JSP page.
>
> Thanks in advance
>
> Lorena
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> 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".
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