# Getting Started - Logic variables

**URL:** <https://community.homey.app/t/getting-started-logic-variables/20132>\
**Category:** Tutorials\
**Created:** [November 2, 2019, 12:54pm UTC](https://community.homey.app/t/getting-started-logic-variables/20132 "2019-11-02T12:54:10Z")\
**Posts on this page:** 1\
**Showing post:** 61

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [April 29, 2021, 5:14pm UTC](https://community.homey.app/t/getting-started-logic-variables/20132/61 "2021-04-29T17:14:33Z")

</div>

Indeed the 3rd word, but it has not a fixed place in the string, so I used the index of the spaces:

> console.log (SysInfo.dateHuman); // just to show dateHuman

```
   var temp = SysInfo.dateHuman.slice(SysInfo.dateHuman.indexOf(' ')+1);
    temp = temp.slice(temp.indexOf(' ')+1);
    var Maand = temp.slice(0,temp.indexOf(' '));

```

---

_[View the full topic](https://community.homey.app/t/getting-started-logic-variables/20132)._
