navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Update date

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Update date
Page: [1]
 
JeroenDortmans

 

Posts: 66
From: Eindhoven Netherlands
Status: offline

 
Update date - 4/9/2002 16:14:15   
I have a table with a column “Datestamp”. I have a form where I can edit this table. In this edit form I don’t want to edit the date. But when I send the fields of the edit form to a “Update” page I want the date to be updated. I thought of this script on the “Update” page:

Datestamp = Day(date) & "/" & Month(date) & "/" & Year(date)

fp_sQry="UPDATE Connectoren SET Supplier_number='::Supplier_number::', Color='::Color::', Remarks='::Remarks::', Belongs_to_history='::Belongs_to_history::', Datestamp=Datestamp WHERE Connectoren_ID=::Connectoren_ID::"

This doesn’t work. What is the best way to do this??
alveyuk

 

Posts: 80
Joined: 4/4/2002
From: Lincs United Kingdom
Status: offline

 
RE: Update date - 4/9/2002 18:49:39   
Your posting said it was in Netherlands. The first question is where is your web host? The second question is what is the system date format on your web hosts server? Is it American format date of mm/dd/yyyy or Euorpean format of dd/mm/yyyy

Your coding is Euorpean format.


Ken Alvey

(in reply to JeroenDortmans)
JeroenDortmans

 

Posts: 66
From: Eindhoven Netherlands
Status: offline

 
RE: Update date - 4/10/2002 0:55:26   
It is supposed to be European. It is for a Intranet environment.

(in reply to JeroenDortmans)
JeroenDortmans

 

Posts: 66
From: Eindhoven Netherlands
Status: offline

 
RE: Update date - 4/10/2002 9:16:20   
I solved it!
This is the code:

Timestamp = Now

fp_sQry="UPDATE Seal_plugs SET DAF_number_seal_plug='::DAF_number_seal_plug::', Supplier='::Supplier::', Supplier_number='::Supplier_number::', Remarks='::Remarks::', Belongs_to_history='::Belongs_to_history::', Tijdstempel='"&(Datestamp)&"' WHERE Seal_plug_code='::Seal_plug_code::'"

When you need it, use it.

(in reply to JeroenDortmans)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Update date
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts