> For the complete documentation index, see [llms.txt](https://javascriptuse.gitbook.io/advanced/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://javascriptuse.gitbook.io/advanced/datetimepicker-jquery-plugin-date-and-time-picke-full-ok.md).

# \[DATETIMEPICKER] jQuery Plugin Date and Time Picke Full (ok)

Chuyển định dạng ngày tháng mặc định sang dạng thứ, ngày, tháng, năm 🤣

```php
add_action('wp_enqueue_scripts', 'add_theme_scripts', 99);
function add_theme_scripts()
{
	
	
  wp_enqueue_style('jqueryuicss', get_stylesheet_directory_uri() . '/assets/css/jquery-ui.css', array(),  wp_generate_uuid4(), 'all');
  wp_enqueue_style('styleathomecss', get_stylesheet_directory_uri() . '/assets/css/dev-custom.css', array(),  wp_generate_uuid4(), 'all');
	wp_enqueue_style('fixuicss', get_stylesheet_directory_uri() . '/assets/css/fix.css', 'all');
  wp_enqueue_script('lazysizesjs', get_stylesheet_directory_uri() . '/assets/js/lazysizes.min.js', array('jquery'),  wp_generate_uuid4(), 'true');
  wp_enqueue_script('jquery-ui-datepicker');
  wp_enqueue_script('styleathomejs', get_stylesheet_directory_uri() . '/assets/js/dev-custom.js', array('jquery'),  wp_generate_uuid4(), 'true');
  wp_localize_script( 'styleathomejs', 'myAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' )));    

  wp_enqueue_script('fixjs', get_stylesheet_directory_uri() . '/assets/js/fix.js', array('jquery'),  wp_generate_uuid4(), 'true');
}
```

```javascript
/* Vietnamese initialisation for the jQuery UI date picker plugin. */
    /* Translated by Le Thanh Huy (lthanhhuy@cit.ctu.edu.vn). */
    (function (factory) {
        "use strict";
        if (typeof define === "function" && define.amd) {
            // AMD. Register as an anonymous module.
            define(["../widgets/datepicker"], factory);
        } else {
            // Browser globals
            factory(jQuery.datepicker);
        }
    })(function (datepicker) {
        "use strict";
        datepicker.regional.vi = {
            closeText: "Đóng",
            prevText: "Trước",
            nextText: "Tiếp",
            currentText: "Hôm nay",
            monthNames: [
                "tháng 1",
                "tháng 2",
                "tháng 3",
                "tháng 4",
                "tháng 5",
                "tháng 6",
                "tháng 7",
                "tháng 8",
                "tháng 9",
                "tháng 10",
                "tháng 11",
                "tháng 12",
            ],
            monthNamesShort: [
                "tháng 1",
                "tháng 2",
                "tháng 3",
                "tháng 4",
                "tháng 5",
                "tháng 6",
                "tháng 7",
                "tháng 8",
                "tháng 9",
                "tháng 10",
                "tháng 11",
                "tháng 12",
            ],
            dayNames: [
                "Chủ Nhật",
                "Thứ Hai",
                "Thứ Ba",
                "Thứ Tư",
                "Thứ Năm",
                "Thứ Sáu",
                "Thứ Bảy",
            ],
            dayNamesShort: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
            dayNamesMin: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
            weekHeader: "Tu",
            dateFormat: "dd/mm/yy",
            firstDay: 0,
            isRTL: false,
            showMonthAfterYear: false,
            yearSuffix: "",
        };
        datepicker.setDefaults(datepicker.regional.vi);
        return datepicker.regional.vi;
    });
    (function ($) {
        $("#thoi_gian").datepicker({
            dateFormat: "DD, d MM, yy",
        });
    })(jQuery);
```

<figure><img src="/files/wWwafLEotg6MsOysKJ5E" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/I9IjkT9NNPfoyVxBi0hk" alt=""><figcaption></figcaption></figure>

{% embed url="<https://github.com/xdan/datetimepicker>" %}

{% file src="/files/M8mQxIhsc2G4mtJ0uN7W" %}

<figure><img src="/files/EojXoESw1BmENtxIu7xg" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://javascriptuse.gitbook.io/advanced/datetimepicker-jquery-plugin-date-and-time-picke-full-ok.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
