Skip to main content
FORUM PLAN UPDATE: Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



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

Notes/Domino 6 and 7 Forum

developerWorks

  

Sign in to participate 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
Author
Category
Platform
Release
Advanced search

Sign In or Register

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

Member Tools


RSS Feeds

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

Resources

 Resources
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

Wikis

 Wikis
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