473,503 Members | 2,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Conversion from string "23/4/2010" to type 'Date' is not valid.

2 New Member
Dear Friends,

Error : Conversion from string "23/4/2010" to type 'Date' is not valid.

This error comes only on hosting server but in locally this is running good.
Please help.
Apr 14 '10 #1
2 3019
MrMancunian
569 Recognized Expert Contributor
Probably the Regional settings for both systems differ from each other. Make sure that both are set correctly.

Steven
Apr 14 '10 #2
Frinavale
9,735 Recognized Expert Moderator Expert
You need to specify the format the date is in when you use the DateTime.Parse method to convert the string into a DateTime structure.

Check out the DateTime.Parse methods available for you to. One of them will help you to accomplish what you're looking to do.


-Frinny
Apr 14 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2079
by: Alfred E Neuman | last post by:
I've read that... AClass ac = AClass( "name", 23 ); is less efficient than... AClass ac( "name", 23 ); because the first has to create a temporary object which is then assigned to ac. ...
9
2901
by: Dmitry Denisenkov | last post by:
Hi, I recently found out that in std::string a("some text"), a.length()==a.size(). Does that mean that c++ strings are, unlike c strings, NOT terminated by char(0)? For some reason I used to think...
19
6117
by: Erik Wikström | last post by:
First of all, forgive me if this is the wrong place to ask this question, if it's a stupid question (it's my second week with C++), or if this is answered some place else (I've searched but not...
3
6107
by: yezi | last post by:
Hi: I want to break a string like "30 23 date" into 3 parts in C: int 30; int 23; char string date; Do not know how to get it.
2
1900
by: bnob | last post by:
My regional setting is "yy-MM-dd" for the date But for my application I have to use the format date "dd/MM/yyyy" I convert the date to dd/MM/yyyy with this code : ...
12
29422
by: Assimalyst | last post by:
Hi, I have a working script that converts a dd/mm/yyyy text box date entry to yyyy/mm/dd and compares it to the current date, giving an error through an asp.net custom validator, it is as...
9
3845
by: weirdwoolly | last post by:
Hopefully someone will be able to help. I have written a stored procedure in C++ called from a Java test harness to validate the graphic data types in C++ and their use. I have declared the...
7
11116
by: Jim | last post by:
Hi guys, The variable '$pixels' in the code below may be an integer type or an integer represented as a string type. I need to check if the value is indeed one of these. Is the following code...
4
9041
by: jk2l | last post by:
Error 10 error LNK2019: unresolved external symbol __imp__glBindTexture@8 referenced in function "public: void __thiscall GLTexture::Use(void)" (?Use@GLTexture@@QAEXXZ) GLTexture.obj Error 11 error...
7
1282
by: John | last post by:
Hi Can I have an array of type OleDb.OleDbConnection that has strings as subscription values? The reason I need this is my app reads a configuration file with db names and their locations and it...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7291
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7012
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5598
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.