Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum



PreviousPrevious NextNext

RE: @created returns the creation date of the document
Harkpabst Meliantrop 3.Aug.18 05:33 AM a Web browser
Domino Designer All Releases All Platforms

Nana, Carl really gave you all the information you need. Everything will work if you follow his advice closely. Maybe one more note to make it perfectly clear:

Domino does already store the creation date of each document without you having to program anything. The date is saved inside the document and @Created is the function to retrieve this system generated date-time-value.

Adding a "computed when composed" field to a form does NOTHING for documents that already existed before the field was added. As Carl suggested, use the properties window for the documents in question to see what the system generated Created date is (first tab) and which fields are actually stored in the document (second tab). New "computed when composed" field are NOT part of the document, unless the document is actively saved. Once the document has been saved after adding the new field, it will contain the correct value, if you use @Created.

Still there is usually no need to add such a field yourself. You can use @Created in view column formulas directly. For display on the form you can use a "computed for display" field or computed text (computed value). The only exception to this rule could be complex and/or distributed workflow applications where the content of existing documents might be copied to new documents which are then saved. Such application logic should be strictly avoided, if possible. Even if documents are replicated from other servers in a distributed environment, @Created will still return the date on which the document was originally created in the original database.

Also date-time values can be formatted for display in any way you like, so there is no advantage in storing them as text (but there are many disadvantages). In a view column you can use the column properties to chose from different display formatting options. In a computed for display field (or computed text) you can use @Text to format the date as needed.

I hope this did not add further confusion but made the point more clear. :)

Get exact creation date of a docume... (Nana Yildizian 31.Jul.18)
. . RE: Get exact creation date of a do... (Carl Tyler 31.Jul.18)
. . . . RE: Get exact creation date of a do... (Nana Yildizian 1.Aug.18)
. . . . . . @created returns the creation date ... (Carl Tyler 1.Aug.18)
. . . . . . . . RE: @created returns the creation d... (Nana Yildizian 2.Aug.18)
. . . . . . . . . . RE: @created returns the creation d... (Carl Tyler 2.Aug.18)
. . . . . . . . . . . . RE: @created returns the creation d... (Harkpabst Melia... 3.Aug.18)
. . . . . . . . . . . . . . RE: @created returns the creation d... (Nana Yildizian 6.Aug.18)

Document Options

  Document options
Print this pagePrint this page

Search this forum

Forum views and search

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Advanced search

Member Tools

RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite