<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Inserting Date into Ms- Access Using jsp' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Inserting Date into Ms- Access Using jsp' posted on the 'Java Server Pages' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 21:43:32 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 21:43:32 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Inserting Date into Ms- Access Using jsp</title>
      <link>http://www.programmersheaven.com/mb/jsp/391909/391909/inserting-date-into-ms--access-using-jsp/</link>
      <description>hai frnds,&lt;br /&gt;
my Table (named as Services) in Ms -Access database contains Following fields...&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
num ----------"AUTONUMBER"
name---------"Text"
date----------"Date/Time"&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And&lt;br /&gt;
I am inserting data into this table.........&lt;br /&gt;
I am Taking name value from an html input page and my jsp page for processing this.......&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;try
 {
  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
  Connection conn=DriverManager.getConnection("jdbc:odbc:trail"
);
  try
  {
   String str1=request.getParameter("name");
   String str="insert into services values('',?,******);//How To INSERT DATE HERE
 
   PreparedStatement stmt=conn.prepareStatement(str);
 
   stmt.setString(1,str1);
   stmt.executeUpdate();
 
   out.print("Succesfully Inserted");
   conn.close();
  }
  catch(SQLException e)
  {
   out.print("SQL Not Executing");
  }
 } 
 catch(Exception e)
 {
  e.printStackTrace();
 }
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now I want to Insert Date into my Table "services ".........my date format should be like this dd-mmm-yyyy What are necessary changes i have to make in InputMask or format field of date(Date/time) in Ms-Access and the code i have to use in Jsp Page to get date....&lt;br /&gt;
And in my insert Statement firsld field is of Autonumber ,wat are problems with this during inserting....and after inserting one row i wat to retieve autonumber value ..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any help would be greatly appreciated ....many thanks in advance &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/391909/391909/inserting-date-into-ms--access-using-jsp/</guid>
      <pubDate>Thu, 04 Jun 2009 02:33:08 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: Inserting Date into Ms- Access Using jsp</title>
      <link>http://www.programmersheaven.com/mb/jsp/391909/408799/re-inserting-date-into-ms--access-using-jsp/#408799</link>
      <description>&lt;span style="color: Green;"&gt;Have a look at this  !&lt;/span&gt;&lt;br /&gt;
&lt;a href="http://forums.sun.com/thread.jspa?threadID=5372982"&gt;http://forums.sun.com/thread.jspa?threadID=5372982&lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/391909/408799/re-inserting-date-into-ms--access-using-jsp/#408799</guid>
      <pubDate>Tue, 03 Nov 2009 21:57:46 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: Inserting Date into Ms- Access Using jsp</title>
      <link>http://www.programmersheaven.com/mb/jsp/391909/410294/re-inserting-date-into-ms--access-using-jsp/#410294</link>
      <description>you can try to use the sql statement as:&lt;br /&gt;
"insert into Services(name, [date]) values(name,FormatdateTime('#yyyy-mm-dd#',strtodate(rDate)+')), rDate is the date."&lt;br /&gt;
&lt;br /&gt;
Hope it hopes&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.raqsoft.com/"&gt;RAQ Report---Enjoy Products and Services of RAQSOFT &lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/391909/410294/re-inserting-date-into-ms--access-using-jsp/#410294</guid>
      <pubDate>Thu, 03 Dec 2009 23:16:16 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: Inserting Date into Ms- Access Using jsp</title>
      <link>http://www.programmersheaven.com/mb/jsp/391909/410295/re-inserting-date-into-ms--access-using-jsp/#410295</link>
      <description>you can try to use the sql statement as:&lt;br /&gt;
"insert into Services(name, [date]) values(name,FormatdateTime('#yyyy-mm-dd#',strtodate(rDate)+')), rDate is the date."&lt;br /&gt;
&lt;br /&gt;
Hope it hopes&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.raqsoft.com/"&gt;RAQ Report---Enjoy Products and Services of RAQSOFT &lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/391909/410295/re-inserting-date-into-ms--access-using-jsp/#410295</guid>
      <pubDate>Thu, 03 Dec 2009 23:17:59 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
  </channel>
</rss>
