> For the complete documentation index, see [llms.txt](https://docs.dbnetsoft.com/dbnetsoft/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dbnetsoft.com/dbnetsoft/screenspro/controls/targettimeelement.md).

# TargetTimeElement

This element counts down towards a given time of day and can keep counting up once that time has passed.

It builds on [TimeTextElement](/dbnetsoft/screenspro/controls/timetextelement.md); only the properties it adds are listed here.

## Properties

| Name            | Type     | Description                                                                                                                                        |
| --------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `TargetTime`    | DateTime | The time that is counted towards. A value with the year 1900 is treated as a time of day and moved to the current day. Defaults to one hour ahead. |
| `RunningFormat` | String   | Format of the remaining or elapsed time. Default `hh:mM:SS`.                                                                                       |
| `ShowCountdown` | Boolean  | Shows the time remaining until `TargetTime`. While it is off, nothing is shown before the target time. Default `true`.                             |
| `ShowCountup`   | Boolean  | Shows the time elapsed since `TargetTime`. While it is off, nothing is shown after the target time. Default `false`.                               |

## Example

```xml
<controls:TargetTimeElement TargetTime="1900-01-01 14:30:00"
                            RunningFormat="hh:mM:SS"
                            ShowCountup="True"
                            FontSize="60" />
```
