Via ajax-based script i get object:
for example:
item.TYP_PCON_START
which value is, for example 201212…
When i try to slice him, i get oject error…
How could i slice this object so, that for example i get 2012, or better set two last numbers on furst place and add dot, like:
12.2012
How could i do this? (i append this text as value of select list)
You need to slice the string property, not the object itself:
http://jsfiddle.net/4Hdme/
edit: In the case that your property is a number, you must convert it to a string before attempting to slice it:
http://jsfiddle.net/4Hdme/1/