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

Timestamp Help needed

Participant ,
Sep 15, 2006 Sep 15, 2006
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
290
Translate
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.
Translate
New Here ,
Sep 15, 2006 Sep 15, 2006
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.
Translate
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
LATEST
I am using a access database with Javascript.
Translate
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