I feel like this should be an easy task, but even after several hours last night I couldn't figure out a reasonable solution.
I would like to have the date display on my control pages in the following format
Thursday
February 16, 2017
But I can't figure out how to generate those two separate line items as variables (or device states).
AppleScript has a "date string" function, but that returns: "Thursday, February 16, 2017" all in one item (so not good for my two line control page display).
I can get the numerical day and year via AppleScripts (day of current date and year of current date), but if I try to call either the weekday or month of current date, I get a 3 letter abbreviation (mon, tue, wed, jan, feb, mar) instead of the full weekday or month-- not really the effect I'm looking for on the control page.
As a work-around for the weekday, and because it is alone on a line, I just had Indigo set a variable to the current weekday at midnight every day (7 scheduled actions). In theory I could do this on the first of every month for the month, then use AppleScript to get the day and year, and mash it all together in one line on the control page. But then the spacing isn't going to work, because different months have different numbers of letters.
Surely I am missing an easy solution to this issue, right?