function for getting year and month of a timestamp
Some sort of timestamp e.g. of class POSIXlt, POSIXct, Date, or character. If the option is of type character it should be in the form of yyyy-mm-dd.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.