Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

default date value in datetime field

Status
Not open for further replies.

QuintonV

Technical User
Joined
Jul 3, 2001
Messages
37
Location
ZA
how do I get the curent date now() as a default value for a date field? I used timestamp and want it in the same formate ie. yyyy/mm/dd hh:mm:ss but need a static date that doesnt change for keeping track of when a record was created I tried puting date() in the default value field of the specific date field but it didnt work I also tried now()

Thanx in advance

Quinton
 
Date() and Now() should both work to get a default date. Check the Format and Input Mask fields.

Format: mm/dd/yyyy (or yyyy/mm/dd)
Input Mask: 99/99/9999;0; (or 9999/99/99;0;)

You can expand these to include time if necessary..

Not sure based on info u provided... htwh Steve Medvid
"IT Consultant & Web Master"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top