# How to get stream creation date

**URL:** <https://community.wowza.com/t/how-to-get-stream-creation-date/36235>\
**Category:** Wowza Streaming Engine\
**Created:** [December 1, 2015, 1:25pm UTC](https://community.wowza.com/t/how-to-get-stream-creation-date/36235 "2015-12-01T13:25:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eddie\_Hermoso](https://avatars.discourse-cdn.com/v4/letter/e/dec6dc/32.png) [@Eddie\_Hermoso](https://community.wowza.com/u/Eddie_Hermoso)\
**Post date:** [December 1, 2015, 1:25pm UTC](https://community.wowza.com/t/how-to-get-stream-creation-date/36235/1 "2015-12-01T13:25:01Z")

</div>

I would like to keep track of the creation date and time of a stream on the server. Is there a way to get this from the Stream class?

For example, I am creating a new stream using the following:

```auto
Stream stream = Stream.createInstance(app, streamName);
app.getProperties().setProperty(streamName, stream);

```

I would like to then keep track of “stale” streams - meaning streams that have unintentionally remained on the server but need to be destroyed. Specifically, I would like to iterate through all stream objects on the server that are at least 2 weeks old and destroy them.

Thanks.

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [January 6, 2016, 8:18am UTC](https://community.wowza.com/t/how-to-get-stream-creation-date/36235/2 "2016-01-06T08:18:14Z")

</div>

You can use WMSProperties. Add a property on creation, then read it anytime.

There are many examples for using WMSProperties [in the forums](https://www.wowza.com/forums/google.php?query=rrlanham%20wmsproperties)

I hope this helps.

Regards,

Salvadore
