Blogger template date formatting using the format
function.
The format
function takes a date symbol.
Syntax:
<b:eval expr='dateObject format "dateSymbol"'/>
Example:
<b:eval expr='data:post.date format "d MMM YYY"' />
Result:
30 Sep 2025
Date Symbol
See unicode.org for a complete list of date symbols. Not all on the list can be used in Blogger template. Here's a few that I've tested:
Date symbol | Description | Result |
MMMM | Month (full) | August |
MMM | Month (short) | Aug |
MM | Month (number, 2 digit) | 07 |
M | Month (number, no leading zero) | 7 |
dd | Day of the month (2 digit) | 05 |
d | Day of the month (no leading zero) | 5 |
YYY | Full year | 2021 |
YY | Year (last 2 digit) | 21 |
Date Properties
You can also access available properties on date object :
year
Returns the year.month (number)
Returns the month of the year, e.g. 1 (January), 2 (February), and so on.day (number)
Returns the day of the month.iso8601
Return ISO8601 standard date format, e.g.2021-11-01T10:13:10.436+07:00
.
Example :
Posted in <data:post.date.year/>
https://www.blogger.com/rpc_relay.html
https://www.blogger.com/comment/frame/220561901913020919?po=8753399946056254919&hl=en&saa=85391&origin=https://xmlexpr.blogspot.com&skin=contempo
https://xmlexpr.blogspot.com/2025/10/date-formatting.html#comments
true