Kodi Community Forum

Full Version: Does SubString ignore spaces?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to display the date in day format but not having any luck.

I've tried using the following condition but it seem to be returning true because of the year.

PHP Code:

Even inserting & # 3 2 ; (minus the spaces) doesn't work so does StringCompare ignore spaces?


EDIT: Thinking about it, barring the inclusion of my dates request, this is a perfect example for the use of skin variables.
It's how our parsing code works - it trims every white-space character in the beginning and end of each parameter - if You want to actually use spaces use this:
<visible>SubString(System.Date," 1 ")</visible>
Thanks pieh, you've saved the day.

EDIT: All working -