如何设置印度日期和格式的格式Reapter Control中的时间 [英] How to set format for Indian Date & Time In Reapter Control
本文介绍了如何设置印度日期和格式的格式Reapter Control中的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在Reapter中获得Indain Date time格式。
我在Reapter中为bind Lablel编写语法
现在它显示为这样04/12/2014 02:54:30 PM但我需要12/04/2014 02:54:30 PM(dd-MM-yyyy hh:MM:ss)
如何我用绑定语法转换它。
< asp:标签ID = Label11 runat = server Text = ' <%#Bind(Date)%>' >
解决方案
尝试:
< asp:label id = Label11 < span class =code-attribute> runat = server < span class =code-attribute> text = <% #Bind( 日期), {0:dd-MM-yyyy hh:mm:ss tt}%> xmlns:asp = #unknown > < / asp:label >
详情请见:自定义日期和时间格式Stri ngs [ ^ ]
I want to get Indain Date time Format in Reapter.
I write a syntax for bind Lablel in Reapter
Now It Is showing like this 04/12/2014 02:54:30 PM But i Need 12/04/2014 02:54:30 PM(dd-MM-yyyy hh:MM:ss)
How to i convert it in binding syntax.
<asp:Label ID="Label11" runat="server" Text='<%#Bind("Date") %>'>
解决方案
Try:
<asp:label id="Label11" runat="server" text="<%#Bind("Date"), "{0:dd-MM-yyyy hh:mm:ss tt}" %>" xmlns:asp="#unknown"></asp:label>
For further information, please see: Custom Date and Time Format Strings[^]
这篇关于如何设置印度日期和格式的格式Reapter Control中的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文