Solved

globalization error when switching to spanish

Posted on 2013-06-06
1
108 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 500 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now