System.DateTimeOffset Created { get; set; }

robot_2Generated
code_blocksInput

Description

The Created property of the Package class indicates the date and time when the package was originally created. This property is useful for tracking the creation history of a package and is represented as a DateTimeOffset object, which includes both the date and time along with the offset from UTC.

Usage

To access the Created property, you need an instance of the Package class. This property is read-only and provides the creation timestamp of the package.

Example

// Example of accessing the Created property
Package myPackage = new Package();
DateTimeOffset creationDate = myPackage.Created;

// Display the creation date
string formattedDate = creationDate.ToString("yyyy-MM-dd HH:mm:ss zzz");
// Use the formattedDate variable as needed