This attribute must only be applied to properties of DateTime, DateTimeOffset, Timestamp,
or the nullable equivalents, or a protobuf Timestamp.
This attribute is ignored when serializing a document to Firestore.
This attribute must not be applied on a property which also has FirestorePropertyAttribute.
When deserializing a snapshot representing a missing document, nullable properties will be set to a null value; non-nullable
properties will be set to the default value of the type (0001-01-01 for DateTime and DateTimeOffset, 1970-01-01 for Timestamp).
Constructors
FirestoreDocumentCreateTimestampAttribute()
public FirestoreDocumentCreateTimestampAttribute()
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version available for the Firestore API class \u003ccode\u003eFirestoreDocumentCreateTimestampAttribute\u003c/code\u003e is 3.10.0, with multiple prior versions also documented, going back to 2.3.1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFirestoreDocumentCreateTimestampAttribute\u003c/code\u003e is an attribute used to mark a property to be populated with the creation timestamp of a Firestore document snapshot.\u003c/p\u003e\n"],["\u003cp\u003eThis attribute is designed to be used with properties of \u003ccode\u003eDateTime\u003c/code\u003e, \u003ccode\u003eDateTimeOffset\u003c/code\u003e, \u003ccode\u003eTimestamp\u003c/code\u003e, or their nullable counterparts, or a protobuf \u003ccode\u003eTimestamp\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFirestoreDocumentCreateTimestampAttribute\u003c/code\u003e is only used when deserializing a document and is ignored during serialization.\u003c/p\u003e\n"],["\u003cp\u003eWhen deserializing a missing document snapshot, nullable properties will be set to \u003ccode\u003enull\u003c/code\u003e, and non-nullable properties will be set to their type's default value.\u003c/p\u003e\n"]]],[],null,[]]