更改日期格式 [英] To Change Format Of Date

查看:90
本文介绍了更改日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个
我使用日历和文本框而不是日历日期的表单选择该日期
在文本框中显示
但是显示日期的格式是mm/dd/yyyy/,我想更改
这些dd/mm/yyyy
请帮助

I Have Create a
Form That I use A calendar and Text Box Than The Calender Date Select That Date
Show In Text Box
But The Format Of Show Date is mm/dd/yyyy/ And I want To change
These dd/mm/yyyy
Plz Help

推荐答案

朋友您好,

如果您通过AJAX使用此代码,请使用以下代码...
请注意dd/MM/yyyy(MM应该为大写)


Hi friend,

Use this below code , if u r using doing this by AJAX...
Please Note dd/MM/yyyy(MM should be in Capital)


<p>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="btn" runat="server" Text="..." />
    </p>
    <p>
        &nbsp;</p>
    <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1"

        PopupPosition="BottomRight" Format="dd/MM/yyyy " Animated="true" PopupButtonID="btn"

        CssClass=" MyCalender" >
    </asp:CalendarExtender>


<asp:CalendarExtender ID="txtReleaseDate_CalendarExtender" runat="server"

    Format="dd/MM/yyyy" PopupButtonID="imgCalendarFrom"

      TargetControlID="txtReleaseDate">
    </asp:CalendarExtender>


不是很清楚.您正在使用什么ASP控件?是通过ajax还是jq?
not very clear. what asp control you are using? is it through ajax or jq?


这篇关于更改日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆