> For the complete documentation index, see [llms.txt](https://help.blings.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.blings.io/role-guides/creator/studio/custom-elements-advance/current-time.md).

# Current time

Add text a connector and set the value to “code” and paste the following code:

```jsx
const now = new Date()
const hourNow = now.getHours();
const minutes = now.getMinutes()
return `${hourNow} : ${minutes}` // or any relevant text formatting
```

This will change the text layer selected and switch the value the current time of the viewer.
