Back to column formats
Column formattingSharePoint Online

Monthly Emoji

This sample demonstrates how to display a emoji representing the month of the date to the left of the date.

Monthly Emoji formatting preview
Sample preview ยท View original image

Copy. Apply. Make it yours.

Get this format

1 definition

Review the requirements below, then paste this JSON into the matching formatting panel. Show me where.

Use your list's internal column names and replace any tenant-specific URLs or flow IDs. Formatting is presentation, not a way to secure data.

Column formatting
Download JSON
{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "children": [
    {
      "elmType": "span",
      "txtContent": "=if((getMonth(@currentField) + 1 ) == 1, '๐ŸŽ', if((getMonth(@currentField) + 1 ) == 2, '๐Ÿซ', if((getMonth(@currentField) + 1 ) == 3, '๐ŸŒท', if((getMonth(@currentField) + 1 ) == 4, '๐ŸŒธ',  if((getMonth(@currentField) + 1 ) == 5, '๐Ÿ“', if((getMonth(@currentField) + 1 ) == 6, 'โ˜”', if((getMonth(@currentField) + 1 ) == 7 , '๐ŸŒป', if((getMonth(@currentField) + 1 ) == 8, '๐Ÿ„', if((getMonth(@currentField) + 1 ) == 9 , '๐ŸŒฐ', if((getMonth(@currentField) + 1 ) == 10, '๐ŸŽƒ', if((getMonth(@currentField) + 1 ) == 11, '๐Ÿ', if((getMonth(@currentField) + 1 ) == 12, '๐ŸŽ…', ''))))))))))))",
      "style": {
        "font-size": "16px",
        "width": "20px",
        "text-align": "center",
        "margin-right": "8px"
      }
    },
    {
      "elmType": "span",
      "txtContent": "@currentField"
    }
  ]
}

From the contributor

How to use this sample

Summary

This sample demonstrates how to display a emoji representing the month of the date to the left of the date.

screenshot of the sample

The correspondence between the months and emoji in this sample is as follows:

Month Emoji
January ๐ŸŽ
February ๐Ÿซ
March ๐ŸŒท
April ๐ŸŒธ
May ๐Ÿ“
June โ˜”
July ๐ŸŒป
August ๐Ÿ„
September ๐ŸŒฐ
October ๐ŸŽƒ
November ๐Ÿ
December ๐ŸŽ…

View requirements

This format can be applied to a Date column

Sample

Solution Author(s)
date-monthly-emoji.json Tetsuya Kawahara

Version history

Version Date Comments
1.0 October 17, 2021 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.