Jake's Cool Macros : Jake's own crazy-cool macros!
Updated: 5/21/02; 2:35:06 PM.

 


Radio Stuff

Themes

Click to see the XML version of this web page.

 
 

Saturday, January 12, 2002

This is the first post to my Macros category!

Here's a neat little trick for changing the date format in your Day template. I wanted my dates to show up in YYYY.MM.DD format, so I changed <%longDate%> in my Day template to the following:

<%local (d = date ("<%shortDate%>"));
local (month = string.padWithZeros (date.month (d), 2));
local (day = string.padWithZeros (date.day (d), 2));
return (date.year (d) + "." + month + "." + day)%>

6:27:31 PM    


© Copyright 2002 Jake Savin.



Click here to visit the Radio UserLand website.

 


January 2002
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Dec   Feb