Datetime 如何更改web2py中日期选择器的日期和时间格式

Datetime 如何更改web2py中日期选择器的日期和时间格式,datetime,datepicker,web2py,Datetime,Datepicker,Web2py,我想快速更改表单中datetime或date字段中使用的web2py日期选择器的输出格式,或者完全禁用它。在哪里可以执行此操作?查找文件“web2py\u ajax.html” <script type="text/javascript"><!-- // These variables are used by the web2py_ajax_init function in web2py_ajax.js (which is loaded below). var

我想快速更改表单中
datetime
date
字段中使用的web2py日期选择器的输出格式,或者完全禁用它。在哪里可以执行此操作?

查找文件“web2py\u ajax.html”

<script type="text/javascript"><!--
    // These variables are used by the web2py_ajax_init function in web2py_ajax.js (which is loaded below).
    var w2p_ajax_confirm_message = "{{=T('Are you sure you want to delete this object?')}}";
    var w2p_ajax_disable_with_message = "{{=T('Working...')}}";
    var w2p_ajax_date_format = "{{=T('%d.%m.%Y')}}";
    var w2p_ajax_datetime_format = "{{=T('%Y-%m-%d %H:%M:%S')}}";
    var ajax_error_500 = '{{=T.M('An error occured, please [[reload %s]] the page') % URL(args=request.args, vars=request.get_vars) }}'
    //--></script>
{{
response.files.insert(0,URL('static','js/jquery.js'))
response.files.insert(1,URL('static','css/calendar.css'))
response.files.insert(2,URL('static','js/calendar.js'))
response.files.insert(3,URL('static','js/web2py.js'))
response.include_meta()
response.include_files()
}}

{{
insert(0,URL('static','js/jquery.js'))
insert(1,URL('static','css/calendar.css'))
insert(2,URL('static','js/calendar.js'))
insert(3,URL('static','js/web2py.js'))
响应。包括_meta()
响应。包含_文件()
}}
为不同的日期格式更改var
w2p\u ajax\u date\u格式
,或编辑response.files-line