{"id":28244,"date":"2021-06-15T11:19:13","date_gmt":"2021-06-15T11:19:13","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=28244"},"modified":"2021-09-01T09:36:28","modified_gmt":"2021-09-01T09:36:28","slug":"how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/","title":{"rendered":"How to Read and Set Date Format of Logged-in User in PCF Control"},"content":{"rendered":"<h2 style=\"text-align: justify;\"><strong>Introduction<\/strong><\/h2>\n<p style=\"text-align: justify;\">Recently in our PCF control, we got the requirement that when the user selects a date from the calendar control then that date format should be of logged-in user. In this blog, we will check how to achieve the same.<\/p>\n<h3 style=\"text-align: justify;\">Scenario:<\/h3>\n<p style=\"text-align: justify;\">Here is my current user settings in Dynamics 365 CRM.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-ReadAndSetDateFormatBlog.jpeg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-28245\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-ReadAndSetDateFormatBlog.jpeg\" alt=\"ReadAndSetDateFormat\" width=\"970\" height=\"690\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-ReadAndSetDateFormatBlog.jpeg 970w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-ReadAndSetDateFormatBlog-300x213.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-ReadAndSetDateFormatBlog-768x546.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-ReadAndSetDateFormatBlog-660x469.jpeg 660w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">As you can see here, the date format are as follows:<\/p>\n<p style=\"text-align: justify;\">Short date: yyyy\/MM\/dd<\/p>\n<p style=\"text-align: justify;\">Long date: MMMM,d,yyyy<\/p>\n<p style=\"text-align: justify;\">In this example, I will be retrieving short date format.<\/p>\n<h3 style=\"text-align: justify;\">Example<\/h3>\n<p style=\"text-align: justify;\">Here is the pop-up window in which I want to retrieve some basic user information including their joining date.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/2-ReadAndSetDateFormatBlog.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28246 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/2-ReadAndSetDateFormatBlog.jpeg\" alt=\"ReadAndSetDateFormat\" width=\"276\" height=\"262\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">For Joining date field, I have used fabric UI datepicker control. Now when the user selects a date from datepicker like below then I want to set the date in the format of current logged-in user.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/3-ReadAndSetDateFormatBlog.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28247 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/3-ReadAndSetDateFormatBlog.jpeg\" alt=\"ReadAndSetDateFormat\" width=\"335\" height=\"315\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/3-ReadAndSetDateFormatBlog.jpeg 335w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/3-ReadAndSetDateFormatBlog-300x282.jpeg 300w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/a><\/p>\n<h3 style=\"text-align: justify;\"><strong>Get the Date Format<\/strong><\/h3>\n<p style=\"text-align: justify;\">To get the logged-in user date format settings, I have retrieved dateFormattingInfo from PCF context object as below:<\/p>\n<p style=\"text-align: justify;\">Context.userSettings.dateFormattingInfo.shortDatePattern. \/\/For Short Date Format.<\/p>\n<p style=\"text-align: justify;\">Context.userSettings.dateFormattingInfo.longDatePattern. \/\/For Long Date Format.<\/p>\n<h3 style=\"text-align: justify;\"><strong>Set the date in datepicker control<\/strong><\/h3>\n<p style=\"text-align: justify;\">To set the retrieved date format to the datepicker control, I have used formatDate property of datepicker control.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/4-ReadAndSetDateFormatBlog.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28248 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/4-ReadAndSetDateFormatBlog.jpeg\" alt=\"ReadAndSetDateFormat\" width=\"884\" height=\"170\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/4-ReadAndSetDateFormatBlog.jpeg 884w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/4-ReadAndSetDateFormatBlog-300x58.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/4-ReadAndSetDateFormatBlog-768x148.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/4-ReadAndSetDateFormatBlog-660x127.jpeg 660w\" sizes=\"(max-width: 884px) 100vw, 884px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Here is the function to set the user selected date:<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/5-ReadAndSetDateFormatBlog.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28249 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/5-ReadAndSetDateFormatBlog.jpeg\" alt=\"ReadAndSetDateFormat\" width=\"1051\" height=\"389\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/5-ReadAndSetDateFormatBlog.jpeg 1051w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/5-ReadAndSetDateFormatBlog-300x111.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/5-ReadAndSetDateFormatBlog-768x284.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/5-ReadAndSetDateFormatBlog-1024x379.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/5-ReadAndSetDateFormatBlog-660x244.jpeg 660w\" sizes=\"(max-width: 1051px) 100vw, 1051px\" \/><\/a><\/p>\n<h3 style=\"text-align: justify;\"><strong>Result<\/strong><\/h3>\n<p style=\"text-align: justify;\">As you can see in the below image, I was able to set the date in logged-in user&#8217;s format(yyyy\/MM\/dd )<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/6-ReadAndSetDateFormatBlog.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28250 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/6-ReadAndSetDateFormatBlog.jpeg\" alt=\"ReadAndSetDateFormat\" width=\"220\" height=\"220\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/6-ReadAndSetDateFormatBlog.jpeg 220w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/6-ReadAndSetDateFormatBlog-150x150.jpeg 150w\" sizes=\"(max-width: 220px) 100vw, 220px\" \/><\/a><\/p>\n<h2 style=\"text-align: justify;\"><strong>Conclusion<\/strong><\/h2>\n<p style=\"text-align: justify;\">With the help of <strong>Context.userSettings.dateFormattingInfo.shortDatePattern<\/strong>, we can read and set date from logged-in user&#8217;s date format.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/kanban-board-dynamics-365-crm\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"wp-image-28102 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/05\/KB_2.jpg\" alt=\"\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/05\/KB_2.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/05\/KB_2-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/05\/KB_2-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/05\/KB_2-660x165.jpg 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Recently in our PCF control, we got the requirement that when the user selects a date from the calendar control then that date format should be of logged-in user. In this blog, we will check how to achieve the same. Scenario: Here is my current user settings in Dynamics 365 CRM. As you can\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/\">Read More: How to Read and Set Date Format of Logged-in User\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,1929],"tags":[1941,2291,2302,2303],"class_list":["post-28244","post","type-post","status-publish","format-standard","hentry","category-controls","category-pcf","tag-pcf-control","tag-pcf-dataset-control","tag-read-date","tag-set-date"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"In this blog, we will learn how to Read and Set the Date Format of Logged-in Users in PCF Control. Click here to know more.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Inogic\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to Read and Set Date Format of Logged-in User in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"In this blog, we will learn how to Read and Set the Date Format of Logged-in Users in PCF Control. Click here to know more.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-ReadAndSetDateFormatBlog.jpeg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-ReadAndSetDateFormatBlog.jpeg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"970\" \/>\n\t\t<meta property=\"og:image:height\" content=\"690\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2021-06-15T11:19:13+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-09-01T09:36:28+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to Read and Set Date Format of Logged-in User in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In this blog, we will learn how to Read and Set the Date Format of Logged-in Users in PCF Control. Click here to know more.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-ReadAndSetDateFormatBlog.jpeg\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Inogic\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/06\\\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\\\/#blogposting\",\"name\":\"How to Read and Set Date Format of Logged-in User in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"How to Read and Set Date Format of Logged-in User in PCF Control\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/1-ReadAndSetDateFormatBlog.jpeg\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/06\\\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\\\/#articleImage\",\"width\":970,\"height\":690,\"caption\":\"ReadAndSetDateFormat\"},\"datePublished\":\"2021-06-15T11:19:13+05:30\",\"dateModified\":\"2021-09-01T09:36:28+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/06\\\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/06\\\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\\\/#webpage\"},\"articleSection\":\"Controls, PCF, PCF Control, PCF Dataset Control, read date, set date\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/06\\\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/#listItem\",\"name\":\"Microsoft PowerApps\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/#listItem\",\"position\":2,\"name\":\"Microsoft PowerApps\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/pcf\\\/#listItem\",\"name\":\"PCF\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/pcf\\\/#listItem\",\"position\":3,\"name\":\"PCF\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/pcf\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/06\\\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\\\/#listItem\",\"name\":\"How to Read and Set Date Format of Logged-in User in PCF Control\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/#listItem\",\"name\":\"Microsoft PowerApps\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/06\\\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\\\/#listItem\",\"position\":4,\"name\":\"How to Read and Set Date Format of Logged-in User in PCF Control\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/pcf\\\/#listItem\",\"name\":\"PCF\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/06\\\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/06\\\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/\",\"name\":\"Inogic\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/06\\\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Inogic\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/06\\\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/06\\\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\\\/\",\"name\":\"How to Read and Set Date Format of Logged-in User in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"In this blog, we will learn how to Read and Set the Date Format of Logged-in Users in PCF Control. Click here to know more.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/06\\\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"datePublished\":\"2021-06-15T11:19:13+05:30\",\"dateModified\":\"2021-09-01T09:36:28+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to Read and Set Date Format of Logged-in User in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","description":"In this blog, we will learn how to Read and Set the Date Format of Logged-in Users in PCF Control. Click here to know more.","canonical_url":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/#blogposting","name":"How to Read and Set Date Format of Logged-in User in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"How to Read and Set Date Format of Logged-in User in PCF Control","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-ReadAndSetDateFormatBlog.jpeg","@id":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/#articleImage","width":970,"height":690,"caption":"ReadAndSetDateFormat"},"datePublished":"2021-06-15T11:19:13+05:30","dateModified":"2021-09-01T09:36:28+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/#webpage"},"articleSection":"Controls, PCF, PCF Control, PCF Dataset Control, read date, set date"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/#listItem","name":"Microsoft PowerApps"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/#listItem","position":2,"name":"Microsoft PowerApps","item":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/#listItem","name":"PCF"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/#listItem","position":3,"name":"PCF","item":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/#listItem","name":"How to Read and Set Date Format of Logged-in User in PCF Control"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/#listItem","name":"Microsoft PowerApps"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/#listItem","position":4,"name":"How to Read and Set Date Format of Logged-in User in PCF Control","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/#listItem","name":"PCF"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/","name":"Inogic","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Inogic"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/","name":"How to Read and Set Date Format of Logged-in User in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","description":"In this blog, we will learn how to Read and Set the Date Format of Logged-in Users in PCF Control. Click here to know more.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"datePublished":"2021-06-15T11:19:13+05:30","dateModified":"2021-09-01T09:36:28+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"How to Read and Set Date Format of Logged-in User in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"In this blog, we will learn how to Read and Set the Date Format of Logged-in Users in PCF Control. Click here to know more.","og:url":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-ReadAndSetDateFormatBlog.jpeg","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-ReadAndSetDateFormatBlog.jpeg","og:image:width":970,"og:image:height":690,"article:published_time":"2021-06-15T11:19:13+00:00","article:modified_time":"2021-09-01T09:36:28+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"How to Read and Set Date Format of Logged-in User in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"In this blog, we will learn how to Read and Set the Date Format of Logged-in Users in PCF Control. Click here to know more.","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-ReadAndSetDateFormatBlog.jpeg","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"1 minute"},"aioseo_meta_data":{"post_id":"28244","title":"","description":"In this blog, we will learn how to Read and Set the Date Format of Logged-in Users in PCF Control. Click here to know more.","keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-02 06:48:54","updated":"2025-07-04 08:45:02","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/power-apps\/\" title=\"Microsoft PowerApps\">Microsoft PowerApps<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/\" title=\"PCF\">PCF<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Read and Set Date Format of Logged-in User in PCF Control\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Microsoft PowerApps","link":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/"},{"label":"PCF","link":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/"},{"label":"How to Read and Set Date Format of Logged-in User in PCF Control","link":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-and-set-date-format-of-logged-in-user-in-pcf-control\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/28244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=28244"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/28244\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=28244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=28244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=28244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}