Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Timestamp Help needed

Participant ,
Sep 15, 2006 Sep 15, 2006

Copy link to clipboard

Copied

I have a form that goes into a database. How do i add a timestamp to the form and send that timestamp to a record when they hit submit. Thanks.
TOPICS
Server side applications

Views

235
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Sep 15, 2006 Sep 15, 2006
I am using a access database with Javascript.

Votes

Translate
New Here ,
Sep 15, 2006 Sep 15, 2006

Copy link to clipboard

Copied

What language are you using?

I generally make a field in my MySQL database called:

submitted TIMESTAMP DEFAULT CURRENT_TIMESTAMP

and then when the user hits submit on the form it will automatically add it.

Be aware that timestamp only goes up to 2037 or something like that. I recommend datetime for anything longterm.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 15, 2006 Sep 15, 2006

Copy link to clipboard

Copied

LATEST
I am using a access database with Javascript.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines