System.DateTimeOffset Updated { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Updated property of the Package class in the Sandbox namespace provides the date and time when the package entry was last updated. This property is useful for determining if there have been any changes to the package on the backend. It is a public, non-static property of type DateTimeOffset.

Usage

To access the Updated property, you need an instance of the Package class. You can then retrieve the last updated timestamp as follows:

Example

```csharp
// Assuming 'package' is an instance of Sandbox.Package
DateTimeOffset lastUpdated = package.Updated;

// Display the last updated date and time
string formattedDate = lastUpdated.ToString("yyyy-MM-dd HH:mm:ss");
// Use the formattedDate as needed, e.g., display in UI
```