---
id: "P:cAlgo.API.Internals.IAccount.CreationTime"
kind: "property"
type: "T:cAlgo.API.Internals.IAccount"
url: "https://help.ctrader.com/ctrader-algo/references/Account/IAccount/CreationTime/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# IAccount.CreationTime

Member of [IAccount](https://help.ctrader.com/ctrader-algo/references/Account/IAccount/index.md).

## CreationTime

Gets the account creation time.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
DateTime CreationTime {get;}
```

Python:

```python
api.Account.CreationTime: DateTime
```

### Returns

`DateTime` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var accountAge = Server.Time - Account.CreationTime;
Print("Account created on {0}, {1} days ago", Account.CreationTime, (int)accountAge.TotalDays);
```

Python:

```python
accountAge = api.Server.Time - api.Account.CreationTime
api.Print(f"Account created on {api.Account.CreationTime}, {int(accountAge.TotalDays)} days ago")
```

