Solved

globalization error when switching to spanish

Posted on 2013-06-06
1
111 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 16

Accepted Solution

by:
Kalpesh Chhatrala earned 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

729 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