{"id":9290,"date":"2016-09-21T08:32:04","date_gmt":"2016-09-21T08:32:04","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=9290"},"modified":"2016-09-21T08:32:04","modified_gmt":"2016-09-21T08:32:04","slug":"how-to-find-the-last-date-of-any-month","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/09\/21\/how-to-find-the-last-date-of-any-month\/","title":{"rendered":"How to Find the Last Date of Any Month"},"content":{"rendered":"<p>You may come across the situation where you have to find the last date of any month whether it is 30, 31, 28 or 29. To do so we can take help of EOMONTH function.<\/p>\n<p>Syntax:<\/p>\n<p>eomonth(DATE_EXPR)<\/p>\n<p>DATE_EXPR is an expression returning a date value.<\/p>\n<p>Consider following example where we have to find out the last date of month February.<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/09\/Last-Date-of-Any-Month.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-9291\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/09\/Last-Date-of-Any-Month.png\" alt=\"Last Date of Any Month\" width=\"281\" height=\"125\" \/><\/a><\/p>\n<p>Above code will give as an output as<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/09\/Last-Date-code.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-9292\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/09\/Last-Date-code.png\" alt=\"Last Date code\" width=\"355\" height=\"127\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Hope this helps!<\/p>\n<h5 style=\"text-align: center\"><strong>About Us<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<p>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, system integrations, third party add-on development and implementation expertise.<\/p>\n<p><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>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.<\/p>\n<p><strong><em>Other Related Blogs:<\/em><\/strong><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/07\/27\/get-year-in-a-date-for-sage-x3-version-7\/\">Get Year in a Date for Sage X3 version 7<\/a><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/05\/12\/know-month-name-from-the-given-date\/\">Know Month Name from the Given Date<\/a><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/10\/31\/how-to-get-number-of-day-and-name-from-date\/\">How to get number of day and name from date<\/a><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/08\/30\/how-to-sort-array-in-ascending-and-descending-order\/\">How to Sort Array in Ascending and Descending Order<\/a><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/08\/08\/how-to-delete-element-from-an-array\/\">How to Delete Element from an Array?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may come across the situation where you have to find the last date of any month whether it is 30, 31, 28 or 29. To do so we can take help of EOMONTH function. Syntax: eomonth(DATE_EXPR) DATE_EXPR is an expression returning a date value. Consider following example where we have to find out the\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/09\/21\/how-to-find-the-last-date-of-any-month\/\">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":[827,918,1134,1774,1780,1901,1938,1942],"class_list":["post-9290","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","tag-find-date-of-any-month","tag-greytrix","tag-last-date-of-any-month","tag-sage-erp-and-sage-crm","tag-sage-erp-x3","tag-sage-x3-issues","tag-sage-x3-techhnical","tag-sage-x3-technical-assistance"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/9290","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=9290"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/9290\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=9290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=9290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=9290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}