{"id":2626,"date":"2025-11-11T11:18:34","date_gmt":"2025-11-11T04:18:34","guid":{"rendered":"https:\/\/portal-atlasx.cdg.co.th\/home\/?post_type=docs&#038;p=2626"},"modified":"2025-11-11T15:17:11","modified_gmt":"2025-11-11T08:17:11","slug":"date","status":"publish","type":"docs","link":"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/android\/library\/date\/","title":{"rendered":"Date"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"dateutil\" style=\"font-style:normal;font-weight:600\">DateUtil<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"variables\"><strong>Variables<\/strong><\/h2>\n\n\n\n<p class=\"no-underline\">\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e39\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14 Date format String \u0e44\u0e14\u0e49\u0e17\u0e35\u0e48&nbsp;<a href=\"https:\/\/developer.android.com\/reference\/java\/text\/SimpleDateFormat\" target=\"_blank\" rel=\"noreferrer noopener\">Android &#8211; SimpleDateFormat<\/a><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><th>Variable Type<\/th><\/tr><\/thead><tbody><tr><td>DEFAULT_FORMAT<\/td><td>String date format &#8220;dd MMMM yyyy&#8221;<\/td><td>String<\/td><td>&#8220;dd MMMM yyyy&#8221;<\/td><td>const val<\/td><\/tr><tr><td>FORMAT_DATE_TIME<\/td><td>String date format &#8220;dd\/MM\/yyyy HH:mm:ss&#8221;<\/td><td>String<\/td><td>&#8220;dd\/MM\/yyyy HH:mm:ss&#8221;<\/td><td>const val<\/td><\/tr><tr><td>FORMAT_DATE_TIME_NO_SEPARATOR<\/td><td>String date format &#8220;yyyyMMddHHmmssSSS&#8221;<\/td><td>String<\/td><td>&#8220;yyyyMMddHHmmssSSS&#8221;<\/td><td>const val<\/td><\/tr><tr><td>FORMAT_DATE<\/td><td>String date format &#8220;dd\/MM\/yyyy&#8221;<\/td><td>String<\/td><td>&#8220;dd\/MM\/yyyy&#8221;<\/td><td>const val<\/td><\/tr><tr><td>FORMAT_yyyyMMddHHmmss<\/td><td>String date format &#8220;yyyyMMddHHmmss&#8221;<\/td><td>String<\/td><td>&#8220;yyyyMMddHHmmss&#8221;<\/td><td>const val<\/td><\/tr><tr><td>FORMAT_yyyyMMdd<\/td><td>String date format &#8220;yyyyMMdd&#8221;<\/td><td>String<\/td><td>&#8220;yyyyMMdd&#8221;<\/td><td>const val<\/td><\/tr><tr><td>FORMAT_HH_mm<\/td><td>String date format &#8220;HH:mm&#8221;<\/td><td>String<\/td><td>&#8220;HH:mm&#8221;<\/td><td>const val<\/td><\/tr><tr><td>DEFAULT_LOCALE<\/td><td>Locale \u0e02\u0e2d\u0e07 Calendar \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32 default<\/td><td>Locale<\/td><td>Locale.getDefault()<\/td><td>val<\/td><\/tr><tr><td>LOCALE_TH<\/td><td>Locale \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e02\u0e2d\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22<\/td><td>Locale<\/td><td>Locale(&#8220;th&#8221;, &#8220;TH&#8221;)<\/td><td>val<\/td><\/tr><tr><td>LOCALE<\/td><td>Locale \u0e02\u0e2d\u0e07 Calendar \u0e42\u0e14\u0e22\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e41\u0e01\u0e49\u0e44\u0e02\u0e04\u0e48\u0e32\u0e19\u0e35\u0e49\u0e44\u0e14\u0e49 \u0e08\u0e30\u0e17\u0e33\u0e43\u0e2b\u0e49 Locale \u0e02\u0e2d\u0e07 object class \u0e19\u0e35\u0e49\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32\u0e19\u0e35\u0e49\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14<\/td><td>Locale<\/td><td>Locale(&#8220;th&#8221;, &#8220;TH&#8221;)<\/td><td>var<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-overview\"><strong>Method Overview<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Return<\/th><\/tr><\/thead><tbody><tr><td>getTimestamp()<\/td><td>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32 Timestamp 13 \u0e2b\u0e25\u0e31\u0e01 \u0e2b\u0e23\u0e37\u0e2d 10 \u0e2b\u0e25\u0e31\u0e01 \u0e08\u0e32\u0e01 device \u0e13 \u0e40\u0e27\u0e25\u0e32\u0e19\u0e31\u0e49\u0e19\u0e46<\/td><td>Long<\/td><\/tr><tr><td>convertTimestampFrom10to13Digit()<\/td><td>\u0e41\u0e1b\u0e25\u0e07 Timestamp 10 \u0e2b\u0e25\u0e31\u0e01 \u0e40\u0e1b\u0e47\u0e19 13 \u0e2b\u0e25\u0e31\u0e01<\/td><td>Long<\/td><\/tr><tr><td>convertTimestampFrom13to10Digit()<\/td><td>\u0e41\u0e1b\u0e25\u0e07 Timestamp 13 \u0e2b\u0e25\u0e31\u0e01 \u0e40\u0e1b\u0e47\u0e19 10 \u0e2b\u0e25\u0e31\u0e01<\/td><td>Long<\/td><\/tr><tr><td>convertCEtoBE()<\/td><td>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e41\u0e1b\u0e25\u0e07 Date \u0e43\u0e19\u0e1b\u0e35 \u0e04.\u0e28. \u0e40\u0e1b\u0e47\u0e19 \u0e1e.\u0e28.<\/td><td>Date<\/td><\/tr><tr><td>convertBEtoCE()<\/td><td>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e41\u0e1b\u0e25\u0e07 Date \u0e43\u0e19\u0e1b\u0e35 \u0e1e.\u0e28. \u0e40\u0e1b\u0e47\u0e19 \u0e04.\u0e28.<\/td><td>Date<\/td><\/tr><tr><td>convertDateToString()<\/td><td>\u0e41\u0e1b\u0e25\u0e07 Date \u0e40\u0e1b\u0e47\u0e19 String \u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a Date Format String \u0e15\u0e48\u0e32\u0e07\u0e46<\/td><td>String?<\/td><\/tr><tr><td>convertStringToDate()<\/td><td>\u0e41\u0e1b\u0e25\u0e07 Date String Format \u0e40\u0e1b\u0e47\u0e19 Date<\/td><td>Date?<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-details\"><strong>Method Details<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun getTimestamp(is10Digit : Boolean = false) : Long<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">getTimestamp<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">is10Digit<\/span><span style=\"color: #000000\"> : <\/span><span style=\"color: #001080\">Boolean<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #0000FF\">false<\/span><span style=\"color: #000000\">) : <\/span><span style=\"color: #001080\">Long<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32 Timestamp 13 \u0e2b\u0e25\u0e31\u0e01 \u0e2b\u0e23\u0e37\u0e2d 10 \u0e2b\u0e25\u0e31\u0e01 \u0e08\u0e32\u0e01 device \u0e13 \u0e40\u0e27\u0e25\u0e32\u0e19\u0e31\u0e49\u0e19\u0e46<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters\"><strong>Parameters<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>is10Digit<\/td><td>\u0e04\u0e48\u0e32 Boolean \u0e17\u0e35\u0e48\u0e43\u0e2a\u0e48\u0e21\u0e32\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 Timestamp 10 \u0e2b\u0e25\u0e31\u0e01 \u0e16\u0e49\u0e32\u0e43\u0e2a\u0e48&nbsp;<code>true<\/code>&nbsp;\u0e2b\u0e23\u0e37\u0e2d 13 \u0e2b\u0e25\u0e31\u0e01 \u0e16\u0e49\u0e32\u0e43\u0e2a\u0e48&nbsp;<code>false<\/code><\/td><td>Boolean<\/td><td>false<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns\"><strong>Returns<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Long<\/td><td>Return \u0e04\u0e48\u0e32 Long \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32 Timestamp<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun convertTimestampFrom10to13Digit(timstamp: Long) : Long<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">convertTimestampFrom10to13Digit<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">timstamp<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Long<\/span><span style=\"color: #000000\">) : <\/span><span style=\"color: #001080\">Long<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e41\u0e1b\u0e25\u0e07 Timestamp 10 \u0e2b\u0e25\u0e31\u0e01 \u0e40\u0e1b\u0e47\u0e19 13 \u0e2b\u0e25\u0e31\u0e01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-1\"><strong>Parameters<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>timstamp<\/td><td>timestamp \u0e17\u0e35\u0e48\u0e21\u0e35\u0e08\u0e33\u0e19\u0e27\u0e19 10 \u0e2b\u0e25\u0e31\u0e01<\/td><td>Long<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-1\"><strong>Returns<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Long<\/td><td>Return Long \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32 Timestamp 13 \u0e2b\u0e25\u0e31\u0e01<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun convertTimestampFrom13to10Digit(timstamp: Long) : Long<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">convertTimestampFrom13to10Digit<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">timstamp<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Long<\/span><span style=\"color: #000000\">) : <\/span><span style=\"color: #001080\">Long<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e41\u0e1b\u0e25\u0e07 Timestamp 13 \u0e2b\u0e25\u0e31\u0e01 \u0e40\u0e1b\u0e47\u0e19 10 \u0e2b\u0e25\u0e31\u0e01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-2\"><strong>Parameters<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>timstamp<\/td><td>timestamp \u0e17\u0e35\u0e48\u0e21\u0e35\u0e08\u0e33\u0e19\u0e27\u0e19 13 \u0e2b\u0e25\u0e31\u0e01<\/td><td>Long<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-2\"><strong>Returns<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Long<\/td><td>Return Long \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32 Timestamp 10 \u0e2b\u0e25\u0e31\u0e01<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun convertCEtoBE(timstamp: Long, locale: Locale = LOCALE) : Date<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">convertCEtoBE<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">timstamp<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Long<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">locale<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Locale<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #0070C1\">LOCALE<\/span><span style=\"color: #000000\">) : <\/span><span style=\"color: #001080\">Date<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e41\u0e1b\u0e25\u0e07 Date \u0e43\u0e19\u0e1b\u0e35 \u0e04.\u0e28. \u0e40\u0e1b\u0e47\u0e19 \u0e1e.\u0e28. \u0e42\u0e14\u0e22\u0e08\u0e30\u0e21\u0e35\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e47\u0e04 SDK \u0e02\u0e2d\u0e07 Android \u0e16\u0e49\u0e32\u0e15\u0e48\u0e33\u0e01\u0e27\u0e48\u0e32 26 \u0e08\u0e30 \u0e21\u0e35\u0e01\u0e32\u0e23 throw exception \u0e2d\u0e2d\u0e01\u0e21\u0e32<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-3\"><strong>Parameters<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>timstamp<\/td><td>Timestamp \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e41\u0e1b\u0e25\u0e07 \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e35 \u0e04.\u0e28.<\/td><td>Long<\/td><td><\/td><\/tr><tr><td>locale<\/td><td>locale \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>Locale<\/td><td>LOCALE<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-3\"><strong>Returns<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Date<\/td><td>Return Date \u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e35\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e35 \u0e1e.\u0e28.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun convertCEtoBE(date: Date, locale: Locale = LOCALE) : Date<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">convertCEtoBE<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">date<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Date<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">locale<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Locale<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #0070C1\">LOCALE<\/span><span style=\"color: #000000\">) : <\/span><span style=\"color: #001080\">Date<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e41\u0e1b\u0e25\u0e07 Date \u0e43\u0e19\u0e1b\u0e35 \u0e04.\u0e28. \u0e40\u0e1b\u0e47\u0e19 \u0e1e.\u0e28. \u0e42\u0e14\u0e22\u0e08\u0e30\u0e21\u0e35\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e47\u0e04 SDK \u0e02\u0e2d\u0e07 Android \u0e16\u0e49\u0e32\u0e15\u0e48\u0e33\u0e01\u0e27\u0e48\u0e32 26 \u0e08\u0e30 \u0e21\u0e35\u0e01\u0e32\u0e23 throw exception \u0e2d\u0e2d\u0e01\u0e21\u0e32<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-4\"><strong>Parameters<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>date<\/td><td>Date \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e41\u0e1b\u0e25\u0e07 \u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e35\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e35 \u0e04.\u0e28.<\/td><td>Date<\/td><td><\/td><\/tr><tr><td>locale<\/td><td>locale \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>Locale<\/td><td>LOCALE<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-4\"><strong>Returns<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Date<\/td><td>Return Date \u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e35\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e35 \u0e1e.\u0e28.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun convertBEtoCE(timstamp: Long, locale: Locale = LOCALE) : Date<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">convertBEtoCE<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">timstamp<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Long<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">locale<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Locale<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #0070C1\">LOCALE<\/span><span style=\"color: #000000\">) : <\/span><span style=\"color: #001080\">Date<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e41\u0e1b\u0e25\u0e07 Date \u0e43\u0e19\u0e1b\u0e35 \u0e1e.\u0e28. \u0e40\u0e1b\u0e47\u0e19 \u0e04.\u0e28.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-5\"><strong>Parameters<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>date<\/td><td>Timestamp \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e41\u0e1b\u0e25\u0e07 \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e35 \u0e1e.\u0e28.<\/td><td>Date<\/td><td><\/td><\/tr><tr><td>locale<\/td><td>locale \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>Locale<\/td><td>LOCALE<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-5\"><strong>Returns<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Date<\/td><td>Return Date \u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e35\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e35 \u0e04.\u0e28.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun convertBEtoCE(date: Date, locale: Locale = LOCALE) : Date<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">convertBEtoCE<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">date<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Date<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">locale<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Locale<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #0070C1\">LOCALE<\/span><span style=\"color: #000000\">) : <\/span><span style=\"color: #001080\">Date<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e41\u0e1b\u0e25\u0e07 Date \u0e43\u0e19\u0e1b\u0e35 \u0e1e.\u0e28. \u0e40\u0e1b\u0e47\u0e19 \u0e04.\u0e28.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-6\"><strong>Parameters<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>date<\/td><td>Date \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e41\u0e1b\u0e25\u0e07 \u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e35\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e35 \u0e1e.\u0e28.<\/td><td>Date<\/td><td><\/td><\/tr><tr><td>locale<\/td><td>locale \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>Locale<\/td><td>LOCALE<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-6\"><strong>Returns<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Date<\/td><td>Return Date \u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e35\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e35 \u0e04.\u0e28.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun convertDateToString(date: Date?, pattern: String = DEFAULT_FORMAT, isConvertToBE: Boolean = false, locale: Locale = LOCALE) : String?<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">convertDateToString<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">date<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Date<\/span><span style=\"color: #000000\">?, <\/span><span style=\"color: #001080\">pattern<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #0070C1\">DEFAULT_FORMAT<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">isConvertToBE<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Boolean<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #0000FF\">false<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">locale<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Locale<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #0070C1\">LOCALE<\/span><span style=\"color: #000000\">) : <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">?<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e41\u0e1b\u0e25\u0e07 Date \u0e40\u0e1b\u0e47\u0e19 String \u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a Date Format String \u0e15\u0e48\u0e32\u0e07\u0e46<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-7\"><strong>Parameters<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>date<\/td><td>Date \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e1b\u0e25\u0e07<\/td><td>Date?<\/td><td><\/td><\/tr><tr><td>pattern<\/td><td>String Date format \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e41\u0e1b\u0e25\u0e07\u0e43\u0e2b\u0e49\u0e2d\u0e2d\u0e01\u0e21\u0e32<\/td><td>String<\/td><td>DEFAULT_FORMAT<\/td><\/tr><tr><td>isConvertToBE<\/td><td>\u0e04\u0e48\u0e32 Boolean \u0e17\u0e35\u0e48\u0e43\u0e2a\u0e48\u0e21\u0e32\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e23\u0e30\u0e1a\u0e1a\u0e41\u0e1b\u0e25\u0e07\u0e40\u0e1b\u0e47\u0e19 \u0e04.\u0e28. \u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48 \u0e16\u0e49\u0e32\u0e43\u0e2a\u0e48&nbsp;<code>true<\/code>&nbsp;\u0e04\u0e37\u0e2d\u0e43\u0e2b\u0e49\u0e41\u0e1b\u0e25\u0e07 \u0e2b\u0e23\u0e37\u0e2d \u0e16\u0e49\u0e32\u0e43\u0e2a\u0e48&nbsp;<code>false<\/code>&nbsp;\u0e04\u0e37\u0e2d\u0e44\u0e21\u0e48\u0e43\u0e2b\u0e49\u0e41\u0e1b\u0e25\u0e07<\/td><td>Boolean<\/td><td>false<\/td><\/tr><tr><td>locale<\/td><td>locale \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>Locale<\/td><td>LOCALE<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-7\"><strong>Returns<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>String?<\/td><td>Return String Date format \u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e15\u0e32\u0e21 pattern \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e41\u0e15\u0e48 \u0e08\u0e30 Return null \u0e16\u0e49\u0e32\u0e04\u0e48\u0e32 Date \u0e17\u0e35\u0e48\u0e43\u0e2a\u0e48\u0e43\u0e19 parameter \u0e40\u0e1b\u0e47\u0e19 null<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun convertDateToString(timestamp: Long?, pattern: String = DEFAULT_FORMAT, isConvertToBE: Boolean = false, locale: Locale = LOCALE) : String?<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">convertDateToString<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">timestamp<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Long<\/span><span style=\"color: #000000\">?, <\/span><span style=\"color: #001080\">pattern<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #0070C1\">DEFAULT_FORMAT<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">isConvertToBE<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Boolean<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #0000FF\">false<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">locale<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Locale<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #0070C1\">LOCALE<\/span><span style=\"color: #000000\">) : <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">?<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e41\u0e1b\u0e25\u0e07 timestamp \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32 Long \u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19 String \u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a Date Format String \u0e15\u0e48\u0e32\u0e07\u0e46<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-8\"><strong>Parameters<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>timestamp<\/td><td>Timestamp \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e1b\u0e25\u0e07<\/td><td>Long?<\/td><td><\/td><\/tr><tr><td>pattern<\/td><td>String Date format \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e41\u0e1b\u0e25\u0e07\u0e43\u0e2b\u0e49\u0e2d\u0e2d\u0e01\u0e21\u0e32<\/td><td>String<\/td><td>DEFAULT_FORMAT<\/td><\/tr><tr><td>isConvertToBE<\/td><td>\u0e04\u0e48\u0e32 Boolean \u0e17\u0e35\u0e48\u0e43\u0e2a\u0e48\u0e21\u0e32\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e23\u0e30\u0e1a\u0e1a\u0e41\u0e1b\u0e25\u0e07\u0e40\u0e1b\u0e47\u0e19 \u0e04.\u0e28. \u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48 \u0e16\u0e49\u0e32\u0e43\u0e2a\u0e48&nbsp;<code>true<\/code>&nbsp;\u0e04\u0e37\u0e2d\u0e43\u0e2b\u0e49\u0e41\u0e1b\u0e25\u0e07 \u0e2b\u0e23\u0e37\u0e2d \u0e16\u0e49\u0e32\u0e43\u0e2a\u0e48&nbsp;<code>false<\/code>&nbsp;\u0e04\u0e37\u0e2d\u0e44\u0e21\u0e48\u0e43\u0e2b\u0e49\u0e41\u0e1b\u0e25\u0e07<\/td><td>Boolean<\/td><td>false<\/td><\/tr><tr><td>locale<\/td><td>locale \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>Locale<\/td><td>LOCALE<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-8\"><strong>Returns<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>String?<\/td><td>Return String Date format \u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e15\u0e32\u0e21 pattern \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e41\u0e15\u0e48\u0e08\u0e30 Return null \u0e16\u0e49\u0e32\u0e04\u0e48\u0e32 timestamp \u0e17\u0e35\u0e48\u0e43\u0e2a\u0e48\u0e43\u0e19 parameter \u0e40\u0e1b\u0e47\u0e19 null<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun convertStringToDate(dateString: String, pattern: String = DEFAULT_FORMAT , locale: Locale = LOCALE) : Date?<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">convertStringToDate<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">dateString<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">pattern<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">String<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #0070C1\">DEFAULT_FORMAT<\/span><span style=\"color: #000000\"> , <\/span><span style=\"color: #001080\">locale<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #001080\">Locale<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #0070C1\">LOCALE<\/span><span style=\"color: #000000\">) : <\/span><span style=\"color: #001080\">Date<\/span><span style=\"color: #000000\">?<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e41\u0e1b\u0e25\u0e07 Date String Format \u0e40\u0e1b\u0e47\u0e19 Date<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters-9\"><strong>Parameters<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>dateString<\/td><td>String Date format \u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e1b\u0e25\u0e07<\/td><td>String<\/td><td><\/td><\/tr><tr><td>pattern<\/td><td>String Date format \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 format \u0e02\u0e2d\u0e07 dateString \u0e02\u0e49\u0e32\u0e07\u0e1a\u0e19<\/td><td>String<\/td><td>DEFAULT_FORMAT<\/td><\/tr><tr><td>locale<\/td><td>locale \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/td><td>Locale<\/td><td>LOCALE<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns-9\"><strong>Returns<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Date?<\/td><td>Return Date \u0e02\u0e2d\u0e07 String Date format<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"featured_media":0,"parent":2531,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-2626","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/comments?post=2626"}],"version-history":[{"count":4,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2626\/revisions"}],"predecessor-version":[{"id":2631,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2626\/revisions\/2631"}],"up":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2531"}],"wp:attachment":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/media?parent=2626"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs_category?post=2626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}