{"id":102,"date":"2018-02-10T10:48:53","date_gmt":"2018-02-10T10:48:53","guid":{"rendered":"http:\/\/basicwebsitesolutions.com\/blog\/?p=102"},"modified":"2018-02-10T10:48:53","modified_gmt":"2018-02-10T10:48:53","slug":"delphi-how-to-change-the-date-format-on-both-inside-the-app-and-globally","status":"publish","type":"post","link":"https:\/\/basicwebsitesolutions.com\/blog\/2018\/02\/10\/delphi-how-to-change-the-date-format-on-both-inside-the-app-and-globally\/","title":{"rendered":"Delphi : How to change the date format on both inside the app and globally"},"content":{"rendered":"<p>I have encountered an issue the other week of a friend that want the default date be changed to another format inside the app. After digging a few days later i came out with a complete list of local settings you can change while inside the delphi environment. Will be posting the codes here for anyone who has encountered the same issues as i have. Hope this helps somebody out there.<\/p>\n<p>Enjoy<\/p>\n<p>Coffee Cup<\/p>\n<p>CurrencyString, CurrencyFormat, NegCurrFormat, ThousandSeparator,<br \/>\nDecimalSeparator, CurrencyDecimals, DateSeparator, ShortDateFormat,<br \/>\nLongDateFormat, TimeSeparator, TimeAMString, TimePMString,<br \/>\nShortTimeFormat, LongTimeFormat<\/p>\n<p>\/\/Change COMPUTER date and time<br \/>\nSetLocaleInfo(GetThreadLocale, LOCALE_SSHORTDATE, &#8216;MM\/dd\/yyyy&#8217;);<br \/>\nSendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, 0,<br \/>\nSMTO_ABORTIFHUNG, 1000, PDWord(Nil)^);<\/p>\n<p>\/\/Change formatting from within the APPLICATION<br \/>\nDateSeparator := &#8216;\/&#8217;;<br \/>\nShortDateFormat := &#8216;MM\/dd\/yyyy&#8217;;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have encountered an issue the other week of a friend that want the default date be changed to another format inside the app. After digging a few days later i came out with a complete list of local settings you can change while inside the delphi environment. Will be posting the codes here for &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/basicwebsitesolutions.com\/blog\/2018\/02\/10\/delphi-how-to-change-the-date-format-on-both-inside-the-app-and-globally\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Delphi : How to change the date format on both inside the app and globally&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1,2],"tags":[],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry","category-delphi-and-interbase","category-life-as-a-programmer","category-windows-and-beyond"],"_links":{"self":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":2,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}