[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

globalization error when switching to spanish

Posted on 2013-06-06
1
Medium Priority
?
118 Views
Last Modified: 2013-07-30
Conversion from string "6/29/2012 12:00:00 AM" to type 'Date' is not valid.

this is my label

                                                    <asp:Label ID="Label15" runat="server" CssClass="titleboldblackmodels " Text='<%# IIf(Eval("InvDate") <> Nothing, FormatDateTime(Eval("InvDate"), DateFormat.ShortDate), "")%>' Visible="true"></asp:Label>&nbsp;
0
Comment
Question by:Wigging
1 Comment
 
LVL 16

Accepted Solution

by:
Kalpesh Chhatrala earned 2000 total points
ID: 39227900
try like below

 <asp:Label ID="Label15" runat="server" CssClass="titleboldblackmodels " Text='<%# IIf(Eval("InvDate") <> Nothing, DateTime.ParseExact(Eval("InvDate"), "dd/MM/yyyy HH:mm:ss tt",
                                  null), "")%>' Visible="true"></asp:Label>&nbsp;

Open in new window

0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question