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

auto date 1

Status
Not open for further replies.

faxof

Programmer
Dec 5, 2001
272
GB
i'm creating stationery Notes 5.0.1
is there a way that i can insert the current date whenever i create new memo with my stationery?

quizzed

faxof
 
The formula "@NOW" should do it...

Rgds,

John
 
thank you

but i'm new to Notes - where exactly do I put the formula?

many thanks

faxof
 
Hello,

If your make the change in the Notes Designer, you can insert a field in the form your changing. Computed Text field should do it.

Let me know how you make out.

Rgds,

John
 
ahh
i think you're overestimating my knowledge. i'm VERY new to notes development.

i have notes designer on my pc, but in this case i'm just creating a memo (as stationery) in the standard client. do i need to make some sort of form in the designer?

 
When creating the template, select "Create" at the top, and then "Computed Text..." from the menu. The programming pane appears, and in the right panel, which is currently blank, enter "@Now" without the quotes. That should do it!

Although it does include the time as well. Try the Lotsu help files for other ways of doing it, or post your exact requirements and I'll try to write a formula.
 
cheers guys you both helped.
you are right - @now does give the date and time, i only wanted the date.

i tried to use @date but i had to type the date too (defeats the object really).
so i tried @Date(Now) but it failed.

i guess i'll keep trying . .

many thanks
 
ha!
done it

"@Date(@Now)"

i see pressing F1 now and again does help. . .
 
You have all sorts of parameters to use with @Date which let you show how the date is stored. I suggest getting into the habit of choosing a parameter, even if its just D0, the default (I think!) because otherwise it will vary between users - its dependent on the user setting for how the date is displayed!

Nice one though, keep programming! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top