---
title: "getWorklogCreatedDate"
canonical: "https://support.appfire.com/space/PSJ/15484736/getWorklogCreatedDate"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getWorklogCreatedDate(worklog) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the created date of a worklog.

Returns the created date of a worklog.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| worklog | Number | Yes | Id of the selected worklog. |

## Return Type

**Date**

## Examples

### Example 1

```
print(getWorklogCreatedDate(11201))
```

Prints the created date of the worklog with id = 11201.

### Example 2

```
for(number id in getWorklogIdsForUser("admin", "TP -9")){
    print (getWorklogCreatedDate (id ))
}
```

Prints the created date for all the admin's worklogs of the issue with key = "TP-9".

## See also

> Macro (contentbylabel)