{"id":195,"date":"2007-05-12T16:54:09","date_gmt":"2007-05-12T14:54:09","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/datetime-get-number-of-days-in-a-month\/"},"modified":"2007-05-12T16:54:10","modified_gmt":"2007-05-12T14:54:10","slug":"datetime-get-number-of-days-in-a-month","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/datetime-get-number-of-days-in-a-month\/","title":{"rendered":"DateTime: Get Number of Days in a month"},"content":{"rendered":"<p><em>Q:<br \/>\nHow do i get how meny days there are in January 2002?<br \/>\nHow do i do that..?<br \/>\nThanks!!<br \/>\n<\/em><br \/>\nA1:<br \/>\nNbrDays := EncodeDate(2002,2,1) &#8211; EncodeDate(2002,1,1);<\/p>\n<p>A2:<br \/>\nThe Delphi JEDI JCLDateTime.Pas unit has a DaysInMonth function:<br \/>\nhttp:\/\/www.delphi-jedi.org\/Jedi:CODELIBJCL<\/p>\n<p>A3:<br \/>\nFrom Delphi Sysutils.pas:<\/p>\n<p>{ The MonthDays array can be used to quickly find the number of<br \/>\n  days in a month:  MonthDays[IsLeapYear(Y), M]      }<\/p>\n<p>[tags]Delphi, Misc, DateTime[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Q: How do i get how meny days there are in January 2002? How do i do that..? Thanks!! A1: NbrDays := EncodeDate(2002,2,1)&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[11],"tags":[114,75,107],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-39","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/195"}],"collection":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/comments?post=195"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/195\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}