Display date on Tumblr Theme

I join MusliMagnet team, which every team member have own right to post something on Muslimagnet Tumblr blog. I little bit confuse when I want to post something but don’t want the interval with previous post too short. Since Tumblr dashboard doesn’t have information about posting date like wordpress does, so I decide to display post date on theme.

result

So which lines of code should I modify?

{block:Date}
  <span class="post-date">
    {DayOfMonthWithZero} <span class="separator">/</span> {MonthNumberWithZero}
  </span>
{/block:Date}

modified as follow

{block:Date}
  <span>
    {DayOfMonthWithZero} <span>/</span> {MonthNumberWithZero} <span>/</span>{Year}
    &nbsp [{24HourWithZero}:{Minutes}]
  </span>
{/block:Date}

For list of block and variable used by Tumblr theme to display Date, I got it from Tumblr docs page.

Dates

Variable Description
{block:Date} {/block:Date} Rendered for all posts.

Always wrap dates in this block so they will be properly hidden on non-post pages.
{block:NewDayDate} {/block:NewDayDate} Rendered for posts that are the first to be listed for a given day.
{block:SameDayDate} {/block:SameDayDate} Rendered for subsequent posts listed for a given day.
{DayOfMonth} “1” to “31”
{DayOfMonthWithZero} “01” to “31”
{DayOfWeek} “Monday” through “Sunday”
{ShortDayOfWeek} “Mon” through “Sun”
{DayOfWeekNumber} “1” through “7”
{DayOfMonthSuffix} “st”, “nd”, “rd”, “th”
{DayOfYear} “1” through “365”
{WeekOfYear} “1” through “52”
{Month} “January” through “December”
{ShortMonth} “Jan” through “Dec”
{MonthNumber} “1” through “12”
{MonthNumberWithZero} “01” through “12”
{Year} “2007”
{ShortYear} “07”
{AmPm} “am” or “pm”
{CapitalAmPm} “AM” or “PM”
{12Hour} “1” through “12”
{24Hour} “0” through “23”
{12HourWithZero} “01” through “12”
{24HourWithZero} “00” through “23”
{Minutes} “00” through “59”
{Seconds} “00” through “59”
{Beats} “000” through “999”
{Timestamp} “1172705619”
{TimeAgo} A contextual time.

e.g., “1 minute ago”, “2 hours ago”, “3 weeks ago”, etc.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: