[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to display date only from a a time/date field

Posted on 2006-05-30
1
Medium Priority
?
384 Views
Last Modified: 2010-04-01
Hi

I have a date/time field in Sql server 2000. Now when I try to display the date in JSP it displays both the date and time but what I need to display is only date.
I store the date in a String variable from the database. Any help would be greatly appreciated


0
Comment
Question by:royalcyber
1 Comment
 
LVL 29

Accepted Solution

by:
bloodredsun earned 2000 total points
ID: 16792470
Use the fmt library from JSTL or use SimpleDateFormat http://javaalmanac.com/egs/java.text/FormatTime.html
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes MS breaks things just for fun... In Access 2003, only the maximum allowable SQL string length could cause problems as you built a recordset. Now, when using string data in a WHERE clause, the 'identifier' maximum is 128 characters. So, …
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question