If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Access-INSERT-wrong Date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-19-04, 05:40
Robse Robse is offline
Registered User
 
Join Date: Mar 2004
Posts: 35
Access-INSERT-wrong Date

I use the following code to enter a record into an Access db:
(Relevant Code Parts shown, addrec.asp)

Code:
<%
sBuild = "INSERT INTO WInfo (WDate) "

sISODate = FormatDateTime(Request.Form("wdate"), vbShortDate)

sBuild = sBuild & "VALUES(#" & sISODate & "#)"

oConn.Execute (sBuild)
%>

<FORM ACTION="./addrec.asp" METHOD="post">
 <input type='Text' name='wdate' value='' size='9' maxlength=''>
</FORM>
In the textbox I type "19.03.2004", for example. However the date
always shows up as "30.12.1889" - that's NULL right? The format of
the date field in the DB is also short date. I've also included the german
LCID in the ASP file, and use Jet.OLEDB.4.0 Provider. What could be wrong?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On