Skip to main content

Timeline for How to Convert Date to Thai

Current License: CC BY-SA 4.0

16 events
when toggle format what by license comment
Jul 14, 2018 at 21:30 comment added Dani Okay, function get_thai_date() { $strdate = array ( "number" => array("๐", "๑", "๒", "๓", "๔", "๕", "๖", "๗", "๘", "๙") ) }; Removing "//...". And it still sais Array ( [0] => ๐ [1] => ๑ [2] => ๒ [3] => ๓ [4] => ๔ [5] => ๕ [6] => ๖ [7] => ๗ [8] => ๘ [9] => ๙ ) .
Jul 14, 2018 at 10:56 comment added Tom J Nowell @Dani you can edit your question to include the get_thai_date function, and include a full version not a cut down version. The very in your comment is unreadable
Jul 14, 2018 at 9:10 answer added Dani timeline score: 0
Jul 14, 2018 at 8:56 comment added Dani Delete $strdate = get_thai_date();, and add sometimes like date_i18n()? Hmmm I don't know.
Jul 14, 2018 at 4:30 comment added anmari Dani, do you have the wordpress thai localisation pack included in your website? translations etc? WP does this stuff. use date_i18n as per codex.wordpress.org/Formatting_Date_and_Time
Jul 14, 2018 at 1:25 review Close votes
Jul 30, 2018 at 3:05
S Jul 14, 2018 at 0:52 history suggested DaveLak CC BY-SA 4.0
Re-word title and question body to make it easier for english readers to understand. Add relevant tags for visibility.
Jul 13, 2018 at 23:49 comment added Dani function get_thai_date() { $strdate = array ( "number" => array("๐", "๑", "๒", "๓", "๔", "๕", "๖", "๗", "๘", "๙"), //... ) } output Array ( [0] => ๐ [1] => ๑ [2] => ๒ [3] => ๓ [4] => ๔ [5] => ๕ [6] => ๖ [7] => ๗ [8] => ๘ [9] => ๙ )
Jul 13, 2018 at 23:43 comment added Dani setlocale(LC_TIME, "th_TH.UTF-8"); echo strftime("%A %d %B %Y", strtotime(get_the_date())); $strdate = get_thai_date(); print_r($strdate["number"]); //preg, strstr or others. What to do?
Jul 13, 2018 at 23:36 comment added DaveLak @Dani Can you edit your question to include the code where you wrote the get_thai_date() function please?
Jul 13, 2018 at 23:35 review Suggested edits
S Jul 14, 2018 at 0:52
Jul 13, 2018 at 23:35 comment added Dani I made get_thai_date(). In functions.php: function get_thai_date() {...}
Jul 13, 2018 at 23:27 history edited fuxia
edited tags
Jul 13, 2018 at 21:35 comment added Tom J Nowell There's no get_thai_date function in WordPress or in PHP, where is this function coming from and how is it implemented? the same goes for the other variations you mentioned, they're not a part of standard WordPress
Jul 13, 2018 at 21:20 review First posts
Jul 13, 2018 at 23:36
Jul 13, 2018 at 21:16 history asked Dani CC BY-SA 4.0