Skip to main content
1-Visitor
February 27, 2016
Solved

How to get the initial creation date/time of a thing ?

  • February 27, 2016
  • 1 reply
  • 1907 views

Is there a way, or a service to get the initial creation date/time of a thing ?

Orhan

Best answer by CarlesColl

Hi Orhan,

You can do it this way:

var confChanges = Things["yourThingName"].GetConfigurationChangeHistory();

confChanges.Filter({ changeAction: "CREATE"});

var creationDate = confChanges.rows[0].timestamp;

Best Regards,

Carles.

1 reply

1-Visitor
February 27, 2016

Hi Orhan,

You can do it this way:

var confChanges = Things["yourThingName"].GetConfigurationChangeHistory();

confChanges.Filter({ changeAction: "CREATE"});

var creationDate = confChanges.rows[0].timestamp;

Best Regards,

Carles.

orhand1-VisitorAuthor
1-Visitor
February 29, 2016

Thanks a lot ! It worked..

Regards,

Orhan