This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes hi urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "hi urgent" Watch "hi urgent" New topic
Author

hi urgent

bh sheiky
Greenhorn

Joined: Feb 26, 2007
Posts: 4
iam using ms sql server ,and my prog. is to insert new values to the database
i am getting the inputs from html and then in jsp iam using request.getParameter and retrieving but in insert how can i change the string data type to date type to insert into the sqlserver database date field.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Welcome to JavaRanch!

We're pleased to have you here with us in the JSP forum, but there
are a few rules that need to be followed, and one is that proper names are
required. Please take a look at the
JavaRanch Naming Policy and
adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here

Also, in an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
UseRealWords,
UseAMeaningfulSubjectLine,
and EaseUp

Abbreviations such as "u" or "ur" in
place of "you" and "you are" or "you're" confound language translation software making
it hard for our non-English speaking members to read your posts.
"plz" is not a word in the English language.

Again, welcome to JavaRanch and good luck with your question.
-Ben
[ February 26, 2007: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

iam using ms sql server ,and my prog. is to insert new values to the database
i am getting the inputs from html and then in jsp iam using request.getParameter and retrieving but in insert how can i change the string data type to date type to insert into the sqlserver database date field.


How about parsing the date string and converting it to "Date" format first ? More people will answer your questions if they are specific.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hi urgent
 
Similar Threads
Simple Hibernate Help (Im Noob)
date inserting
parsing in servlet
Storing date in DB using Entity Beans
how to map Date