Kodi Community Forum

Full Version: tomorrow's date
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Is there any way to display tomorrow's date, or for that matter, the date of any day 1 or 2 or.. ahead of today's date
Well you could set the time into the future.

It would help if you would explain what you are trying to achieve.
On my weather forecast page in myweather.xml, I wanted to put an abbreviated date beside each day so that it reads, for instance:
22/5 Wednesday
Ah, so this is a skinning question.

You might be able to do something with
Code:
System.Date    
System.Date(format)
More info in the wiki @ InfoLabels (wiki)
Labels available for weather -

Code:
$INFO[Window(Weather).Property(Daily.%i.ShortDay)]  = Tue
$INFO[Window(Weather).Property(Daily.%i.LongDay)]   = Tuesday
$INFO[Window(Weather).Property(Daily.%i.ShortDate)] = 21 May
$INFO[Window(Weather).Property(Daily.%i.LongDate)]  = 21 May

I don't know why the last two give the same result though.
(2013-05-21, 09:51)Hitcher Wrote: [ -> ]Labels available for weather -

Code:
$INFO[Window(Weather).Property(Daily.%i.ShortDay)]  = Tue
$INFO[Window(Weather).Property(Daily.%i.LongDay)]   = Tuesday
$INFO[Window(Weather).Property(Daily.%i.ShortDate)] = 21 May
$INFO[Window(Weather).Property(Daily.%i.LongDate)]  = 21 May

I don't know why the last two give the same result though.

short = jan / feb / mar ...
long = january / february / march ...
Sorry, too early. Tongue
May might not be the best month to use as an example Smile
These all do an excellent job of displaying the current system date in various guises. But how to display the date of say friday or saturday when it is thursday?
You simply change %i to the day you want (1-6) with 1 being today, 2 being tomorrow, etc.
well I tried %1, %2, and even just straight 1 and 2 and it doesn't work for me. Have any of you guys tried it to see if it works for you?
What weather addon are you using?
Oz Weather. I tried it on Weather Underground, even tried it on the home page and it didn't work
They're working fine for me, I even checked using Oz Weather, so we'll need to see your whole MyWeather.xml.
Pages: 1 2