{"id":8644,"date":"2016-05-12T10:35:04","date_gmt":"2016-05-12T10:35:04","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=8644"},"modified":"2016-05-12T10:35:04","modified_gmt":"2016-05-12T10:35:04","slug":"know-month-name-from-the-given-date","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/05\/12\/know-month-name-from-the-given-date\/","title":{"rendered":"Know Month Name from the Given Date"},"content":{"rendered":"<p style=\"text-align: justify\">Sage X3 provides an inbuilt function to retrieve the number and name of month from the particular date. Following are the functions you need to write for the same.<\/p>\n<ol style=\"text-align: justify\">\n<li>To retrieve number of month from given date:<\/li>\n<\/ol>\n<p style=\"text-align: justify\"><strong><em>month(exp_date)<\/em><\/strong><\/p>\n<p style=\"text-align: justify\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/05\/Sage-X3-Month-Name.png\" target=\"_blank\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-8645\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/05\/Sage-X3-Month-Name.png\" alt=\"Sage X3 Month Name\" width=\"716\" height=\"156\" \/><\/a><\/p>\n<p style=\"text-align: justify\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/05\/Sage-X3-Month-Name-from-Date.png\" target=\"_blank\"><img decoding=\"async\" class=\" size-full wp-image-8646 aligncenter\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/05\/Sage-X3-Month-Name-from-Date.png\" alt=\"Sage X3 Month Number from Date\" width=\"442\" height=\"165\" \/><\/a><\/p>\n<ol style=\"text-align: justify\" start=\"2\">\n<li>To retrieve name of month from given date or given number of month:<\/li>\n<\/ol>\n<p style=\"text-align: justify\"><strong><em>month$(exp_date)<\/em><\/strong><\/p>\n<p style=\"text-align: justify\"><strong><em>month$(exp_num)<\/em><\/strong><\/p>\n<p style=\"text-align: justify\">Where,<\/p>\n<p style=\"padding-left: 30px;text-align: justify\"><strong><em>exp_date<\/em><\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : date type expression<\/p>\n<p style=\"padding-left: 30px;text-align: justify\"><strong><em>exp_num \u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/em><\/strong><strong>: <\/strong>numerical expression<\/p>\n<p style=\"padding-left: 30px;text-align: justify\"><strong>month$ \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0: <\/strong>extracts the name of the month for a valid date.<\/p>\n<p style=\"text-align: justify\">If the argument is numerical, it is a month number, calculated with modulo 12 (1 for &#8220;January&#8221;, etc.).<\/p>\n<p style=\"text-align: justify\">The result is a Char type.<\/p>\n<p style=\"text-align: justify\">You can pass either the date or number of a month as an argument to this function.<\/p>\n<p style=\"text-align: justify\">Refer the below screenshots better understanding.<\/p>\n<p style=\"text-align: justify\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/05\/Sage-X3-month-function.png\" target=\"_blank\"><img decoding=\"async\" class=\"  wp-image-8648 aligncenter\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/05\/Sage-X3-month-function.png\" alt=\"Sage X3 month$() function\" width=\"695\" height=\"163\" \/><\/a><\/p>\n<p style=\"text-align: justify\">Here, the date is passed as an argument to month$() function.<\/p>\n<p style=\"text-align: justify\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/05\/Sage-X3-month.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-8649 aligncenter\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/05\/Sage-X3-month.png\" alt=\"Sage X3 month\" width=\"683\" height=\"144\" \/><\/a><\/p>\n<p style=\"text-align: justify\">Here, the number of a month is passed as an argument to month$() function.<\/p>\n<p style=\"text-align: justify\">Output for above two snippets is:<\/p>\n<p style=\"text-align: justify\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/05\/Month-Name-from-Date.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-8650 alignnone\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/05\/Month-Name-from-Date.png\" alt=\"Month Name from Date\" width=\"528\" height=\"197\" \/><\/a><\/p>\n<p style=\"text-align: justify\"><strong>Hope this blog helps!<\/strong><br \/>\n<!--googleoff: index--><br \/>\n<strong>About Us<\/strong><\/p>\n<p style=\"text-align: justify\">Greytrix is one stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.<\/p>\n<p style=\"text-align: justify\"><a href=\"http:\/\/www.greytrix.com\/\" target=\"_blank\">Greytrix<\/a>\u00a0have some unique solutions of\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-crm\/gumu-sage-x3-integration\" target=\"_blank\">Sage X3\u2019s integration with Sage CRM<\/a>,\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\" target=\"_blank\">Salesforce.com<\/a>\u00a0and\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/magento-sage-integrations\/sage-x3-magento\" target=\"_blank\">Magento eCommerce<\/a>. It also offers best-in-class\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" target=\"_blank\">Sage X3 customization and development services<\/a>\u00a0to Sage business partners, end users, and Sage PSG worldwide.<\/p>\n<p style=\"text-align: justify\">For more information on Sage X3 Integration and Services, please contact us at\u00a0<a href=\"mailto:x3@greytrix.com\" target=\"_blank\">x3@greytrix.com<\/a>\u00a0.We will be glad to assist you.<br \/>\n<!--googleon: index--><br \/>\n<strong><em>Other Related Blogs:<\/em><\/strong><\/p>\n<ul>\n<li style=\"text-align: justify\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/10\/31\/how-to-get-number-of-day-and-name-from-date\/\" target=\"_blank\">How to get number of day and name from date?<\/a><\/li>\n<li style=\"text-align: justify\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/09\/29\/how-to-define-days-for-expected-issue-date-calculation-of-prepayment\/\" target=\"_blank\">How to define days for Expected Issue date calculation of Prepayment?<\/a><\/li>\n<li style=\"text-align: justify\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/02\/28\/how-to-find-end-day-of-month\/\" target=\"_blank\">How to find End day of month in Sage ERP X3?<\/a><\/li>\n<li style=\"text-align: justify\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2014\/10\/30\/find-earliest-date-from-range-of-dates\/\" target=\"_blank\">Find earliest date from range of dates?<\/a><\/li>\n<li style=\"text-align: justify\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2014\/12\/31\/link-tables-in-sage-erp-x3-through-coding\/\" target=\"_blank\">Link tables in Sage ERP X3 through coding<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Sage X3 provides an inbuilt function to retrieve the number and name of month from the particular date. Following are the functions you need to write for the same. To retrieve number of month from given date: month(exp_date) To retrieve name of month from given date or given number of month: month$(exp_date) month$(exp_num) Where, exp_date\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/05\/12\/know-month-name-from-the-given-date\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[1303,1304,1839,1942,1945],"class_list":["post-8644","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","tag-month-name","tag-month-name-given-date","tag-sage-x3-blogs","tag-sage-x3-technical-assistance","tag-sage-x3-technical-blogs"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/8644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=8644"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/8644\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=8644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=8644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=8644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}