cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

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

orhand
2-Explorer

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

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

Orhan

ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

2 REPLIES 2

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.

orhand
2-Explorer
(To:CarlesColl)

Thanks a lot ! It worked..

Regards,

Orhan

Announcements


Top Tags