# Blockly: cannot split() text string from String Item

**URL:** <https://community.openhab.org/t/blockly-cannot-split-text-string-from-string-item/130819>\
**Category:** Beginners\
**Tags:** blockly\
**Created:** [December 29, 2021, 3:50pm UTC](https://community.openhab.org/t/blockly-cannot-split-text-string-from-string-item/130819 "2021-12-29T15:50:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Andrew\_Rowe](https://community.openhab.org/user_avatar/community.openhab.org/andrew_rowe/32/37075_2.png) [@Andrew\_Rowe](https://community.openhab.org/u/Andrew_Rowe)\
**Post date:** [December 29, 2021, 8:36pm UTC](https://community.openhab.org/t/blockly-cannot-split-text-string-from-string-item/130819/2 "2021-12-29T20:36:06Z")

</div>

I didn’t want this to slip to far down before replying. When I started trying to write some documentation for blockly, I ran into a similar issue trying to write a simple example. It has been awhile so I can’t recall the exact syntax I was trying but it involved using the make ‘list from text’ block. I think I was trying to extract the hour out of the state of a DateTime item. (the state of which is a string) The ‘get state of item’ block is the subject of another thread [see here](https://community.openhab.org/t/group-handling-with-blockly/130630/23) for further reading

---

_[View the full topic](https://community.openhab.org/t/blockly-cannot-split-text-string-from-string-item/130819)._
