I want to change my date to appear like May 3rd, 2009 at 6:00 pm. I've checked out the tags but I can't seem to get things to work. I already have a themelayer. Would I have to merge something with it? I've posted it below. I have a paid account.
layerinfo "type" = "theme
(
Read more... )
Find this line: print $e.time->date_format("%%dd%% %%month%% %%yyyy%%"); and change it to whatever format you'd like. Here is a reference list.
Reply
Reply
Reply
Reply
Reply
When does the next function start in there? Sigh.
Reply
Here, I've put it in a layer for you, just copy&paste this into your layer, then change the date format. :)
Reply
S2 Compiler Output at Mon May 4 03:18:52 2009
Error compiling layer:
Compile error: line 232, column 3: Unexpected token parsing statement block
S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 47
S2::NodeFunction, S2/NodeFunction.pm, 104
S2::Layer, S2/Layer.pm, 58
S2::Compiler, S2/Compiler.pm, 27
Context
228: $date = $date + $e.time->date_format("long_day");
229: """
230:
""";
231: print $e.time->date_format("%%month%% %%dayord%% %%yyyy%%");
232: + " at " + $comment.time->time_format("%%h%%:%%min%% %%a%%m"); "$time
233: ";
234: """
235:
""";
236: if ($e.security != "")
Reply
Reply
Then I have custom css as well.
Reply
print $e.time->date_format("%%month%% %%dayord%%, %%yyyy%%");.
Reply
I tried that and it still won't work. I'm not sure what I'm doing wrong.
Reply
Is it looking like this?
Reply
Reply
Reply
Reply
Leave a comment