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

NOW()

New Here ,
Nov 06, 2009 Nov 06, 2009

Copy link to clipboard

Copied

I would like to insert a record using the insert record behavior and insert the date and time also into the database.   Is this possible?

TOPICS
Server side applications

Views

488
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
LEGEND ,
Nov 06, 2009 Nov 06, 2009

Copy link to clipboard

Copied

Read your DBMS documentation. Whichever you are using, there's a way to insert the current date/time by setting the columns default value without having to use server/client side scripting.

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
Advisor ,
Nov 06, 2009 Nov 06, 2009

Copy link to clipboard

Copied

The answer to your question is yes; it is possible.

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
LEGEND ,
Nov 08, 2009 Nov 08, 2009

Copy link to clipboard

Copied

LATEST

To get help in an online forum like this, use a more descriptive subject line and give more details of your setup. You'll find some helpful guidelines in How to get help quickly: http://forums.adobe.com/thread/470404.

If you want to insert the current date and time in a database, you might find that the database system has a suitable data type that does it automatically. For example, MySQL has a TIMESTAMP data type that does precisely that. See http://dev.mysql.com/doc/refman/5.0/en/timestamp.html.

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