# TryGetExpirationUtc(out DateTime)

> Converts EntitlementGroupInfo.Expiration_ts to a UTC date.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Licensing](/engine/7000.0/script-reference/unityeditor/licensing.md)
* **Assembly:** UnityEditor.CoreModule

## TryGetExpirationUtc(DateTime)

```csharp
public bool TryGetExpirationUtc(out DateTime expirationUtc)
```

### Parameters

**** (\[DateTime]\(https\://learn.microsoft.com/dotnet/api/system.datetime)): Receives the expiry as a UTC date, or the default value if the method returns `false`.

### Returns

| Type                                                          | Description                                                                                                                               |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the entitlement group has an expiry that could be read as a date; `false` if it does not expire or the value could not be read. |

### Remarks

Use this method instead of parsing [EntitlementGroupInfo.Expiration\_ts](/engine/7000.0/script-reference/unityeditor/licensing/entitlementgroupinfo/expiration-ts.md) at each call site.
