Date display

Thread Solved

Join Date: Aug 2006
Posts: 3
Reputation: nixlie is an unknown quantity at this point 
Solved Threads: 0
nixlie nixlie is offline Offline
Newbie Poster

Date display

 
0
  #1
Aug 30th, 2006
Hey again,

Im seriosly having difficulty displaying the current date and time in java/jsp. THis is the code im using to get the date and time:
"
public static void main(String args[])
{
Date date=new Date();
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yy");
String strDate = sdf.format(date);
System.out.println(""+strDate);
}
"
but nothing seems to be displaying at all. Am i forgetting something do i still need include something? Please please help!

Thanks
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Date display

 
0
  #2
Aug 30th, 2006
this has nothing to do with JSP, or if you put that code in a JSP your understanding of how JSP works is so seriously flawed you should get yourself a beginner's tutorial and start from scratch.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC