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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Dates 1

Status
Not open for further replies.

Sherylj

Programmer
Jan 21, 2000
55
US
Hi, I've been away for a while and have lost some of my CF knowledge. I know I've done this before but how do I automatically insert the current date in a form. I basically want a Create Date to appear in the form automatically (not in a text box where they can edit it) when someone opens a new incident form.

Any help greatly appreciated.

Sherylj :)

 
There are all sorts of Date functions in ColdFusion, the variable that gets the current date and time is #Now()#.

You would then need to call ather functions to format this properly, like #DateFormat(Now(),"mmmm d, yyyy")#.

If you have ColdFusion studio, there's a list of date and time functions in the help.
 
Thank you, thank you, thank you!! I knew it. I was just having a DUH moment. Yes I have Studio and I've been reading the Formatting stuff but couldn't remember the
Now() part! That's all I lacked. Thanks. You got a vote from me!

Sherylj :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top