{"id":10263,"date":"2016-02-25T14:09:44","date_gmt":"2016-02-25T06:09:44","guid":{"rendered":"http:\/\/localhost\/help\/p2-server\/calculations\/months-of-year\/"},"modified":"2024-01-16T12:18:56","modified_gmt":"2024-01-16T04:18:56","slug":"months-of-year","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/time-periods\/months-of-year\/","title":{"rendered":"Months of Year"},"content":{"rendered":"\n<h2><span id=\"Format\">Format<\/span><\/h2>\n<p class=\"intro-text\"><strong>January(StartTime [,TimeZone])<\/strong><\/p>\n<p class=\"left-bar-p2blue\">Note: This function applies to all the months of the year, from January - December. Substitute <em>January <\/em>for the appropriate month, as required.<\/p>\n<h2><span id=\"Returns\"><span id=\"Returns\">Returns<\/span><\/span><\/h2>\n<p class=\"intro-text\">Returns the time of the start of the month, occurring on or before the provided StartTime.<\/p>\n<h2><span id=\"Parameters\"><span id=\"Parameters\">Inputs<\/span><\/span><\/h2>\n<p class=\"intro-text\"><strong>StartTime<\/strong>: The time from which to calculate the start of the month.<br \/>\nBehaviour: Required<br \/>\nDimension: Collection, SingleValue, MultiCollection<br \/>\nValid data types: DateTime, Decimal, Integer, String<\/p>\n<p class=\"left-bar-p2blue\">Note: You can use the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/time\/\">Time<\/a>() function to use a valid DateTime argument.<\/p>\n<p class=\"intro-text\"><strong>TimeZone<\/strong>: The geographical or UTC offset\u00a0time zone (e.g. \"Australia\/Perth\" or \"UTC+08:00\"). If not supplied, it assumes the configured calendar time zone.\u00a0<br \/>\nBehaviour:\u00a0Optional<br \/>\nDimension: SingleValue<br \/>\nValid data types: String<\/p>\n<p class=\"left-bar\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/calculation-syntax\/#Data_Type\">How to format data types<\/a><\/p>\n<h2><span id=\"Examples\">Examples<\/span><\/h2>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">January(Time(), \"Australia\/Perth\")<\/span><br \/>\nExpression: <span class=\"code-fragment\">February(Time() - 60, \"UTC+08:00\")<\/span><br \/>\nExpression: <span class=\"code-fragment\">March(Time(), \"Australia\/Perth\")<\/span><br \/>\nExpression: <span class=\"code-fragment\">April(Time(), \"UTC+08:00\")<\/span><\/p>\n<h2><span id=\"Release_History\">Release History<\/span><\/h2>\n<ul class=\"intro-text\">\n<li>Months of Year 4.6.5\n<ul class=\"intro-text\">\n<li>Changed StartTime parameter to support MultiCollection values.<\/li>\n<\/ul>\n<\/li>\n<li>Months of Year 4.0\n<ul class=\"intro-text\">\n<li>Initial version<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Use the months of year functions (e.g. January()) to get the time of the start of the month.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/time-periods\/months-of-year\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":10284,"parent":9756,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[9],"tags":[100,400],"class_list":["post-10263","page","type-page","status-publish","has-post-thumbnail","hentry","category-tech-ref","tag-calculations","tag-months-of-year","Version-4-0","Version-4-6-5","Product-srv"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/10263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=10263"}],"version-history":[{"count":4,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/10263\/revisions"}],"predecessor-version":[{"id":64823,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/10263\/revisions\/64823"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/9756"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/10284"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=10263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=10263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=10263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}