使用asp.net 3.5的ajax日历日期格式 [英] ajax calender date format using asp.net 3.5

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

问题描述

大家好,

我正在使用vs2008,asp.net和c#.net

如何使用asp.net在ajax日历中设置日期格式.

我需要dd/MM/yyyy日期格式才能以日历显示,而在传递日期值时也要以MM/dd/yyyy格式进行查询.

dd/MM/yyyy用于显示
MM/dd/yyyy用于相同压光机控件中的日期值


请给个建议.......

问候
mukesh

解决方案

嗨 以下应回答您的问题



< ajaxToolkit:日历runat = " 
    TargetControlID = " 
 Format = "  
    PopupButtonID = " /> 


Hi All,

I am using vs2008,asp.net and c#.net

how to set date format in ajax calender using asp.net.

i need dd/MM/yyyy date format for display in calender and same in MM/dd/yyyy for query while i pass the date value.

dd/MM/yyyy for display
MM/dd/yyyy for date value in same calender control


plz give suggestion.......

Regards
mukesh

解决方案

Hi The below should answer your question



<ajaxToolkit:Calendar runat="server"
    TargetControlID="Date1"
    Format="dd/MM/YYYY, yyyy"
    PopupButtonID="Image1" />


这篇关于使用asp.net 3.5的ajax日历日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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