No announcements
Found 1852785 threads
-
1 Votes
convert string to datetime?
myDate = null; //OK DateTime myDate = null; //FAILS Maybe the problem lays somewhere else, maybe the string cannot ...Answered | 6 Replies | 3673 Views | Created by peter 9 - Tuesday, July 10, 2012 4:17 AM | Last reply by Mitja Bonca - Tuesday, July 10, 2012 2:28 PM -
0 Votes
String was not recognized as a valid Boolean.
I put a DataGridView, a TextBox, two RadioButtons in a GroupBox, and two buttons on a form and used this: Public Class Form1 Dim dt As DataTable Dim dv As ...Answered | 7 Replies | 4697 Views | Created by theValkyrie - Wednesday, March 13, 2013 2:57 PM | Last reply by Andrew Morton - Thursday, March 14, 2013 9:58 AM -
0 Votes
Nullable Datetime not recognized as DateTime
Here is a test DateTime?Answered | 1 Replies | 3930 Views | Created by Erik Lidman - Friday, March 12, 2010 9:55 PM | Last reply by paully21 - Friday, March 12, 2010 10:41 PM -
0 Votes
Convert String to DateTime
It won't recognize PDT.Answered | 1 Replies | 3551 Views | Created by JBendler - Thursday, October 8, 2009 7:10 PM | Last reply by Wyck - Thursday, October 8, 2009 8:32 PM -
0 Votes
Error in Typecasting from string to datetime
Then change the Start Date column to datetime data type.Answered | 5 Replies | 729 Views | Created by kalsubu - Wednesday, July 15, 2015 7:01 AM | Last reply by Katherine Xiong - Monday, July 20, 2015 3:59 AM -
0 Votes
Convert DateTime String To DateTime
I edited my original reply to strip any non-numeric data from the string.Answered | 6 Replies | 1214 Views | Created by Paul 2 U - Friday, June 5, 2015 6:51 PM | Last reply by Daniel Janik - Friday, June 5, 2015 8:09 PM -
0 Votes
Convert String to DateTime
Looks like some of the string value has invalid date format, you can check this by using ISDATE function...try SELECT Dt, ISDATE( '20' ...Answered | 11 Replies | 2917 Views | Created by Sam233 - Thursday, March 28, 2013 9:03 AM | Last reply by SQLZealots - Thursday, March 28, 2013 10:24 AM -
0 Votes
Parsing Custom string to DateTime
string strDate = "2012/09/05 10:46:39+22"; string strOffSet = strDate.Substring(strDate.Length - 2); float zone = (float)int.Parse(strOffSet) ...Answered | 6 Replies | 1419 Views | Created by akhilrajau - Wednesday, September 5, 2012 5:59 AM | Last reply by Joel Engineer - Wednesday, September 5, 2012 1:39 PM -
1 Votes
Cast string as datetime issue
I kinda wish we had kept the "T" instead of the space so a timestamp would be a solid, unbroken string.Answered | 7 Replies | 1403 Views | Created by Jayme Jeffman - Thursday, September 25, 2014 4:04 PM | Last reply by Jayme Jeffman - Friday, October 10, 2014 1:29 PM -
1 Votes
Error while converting a UTC datetime
Remove the UTC from the string before converting it and it should work.Answered | 3 Replies | 2463 Views | Created by patelmahesh - Tuesday, August 21, 2012 3:16 PM | Last reply by Norkk - Friday, August 24, 2012 1:53 PM -
1 Votes
casting datetime to string or if statement to get around error
use this code System.DateTime and System.String are different types , they can not to cast togather but: the object class is base ...Answered | 3 Replies | 3428 Views | Created by bthumber - Wednesday, November 10, 2010 4:52 PM | Last reply by DeniskaB - Wednesday, November 10, 2010 7:14 PM -
0 Votes
String was not recognized as a valid DateTime.
If you are not 100% sure it is valid (user input ?)Answered | 5 Replies | 7 Views | Created by Anonymous - Wednesday, February 4, 2015 1:10 AM | Last reply by Anonymous - Wednesday, February 4, 2015 6:55 AM -
0 Votes
string empty error validation
The statement that is generating the error (because txtHours.Text is an empty string) is before the one that checks whether txtHours.Text is an empty string.Answered | 2 Replies | 2904 Views | Created by skwotingdog - Tuesday, April 26, 2011 2:17 PM | Last reply by Blackwood - Tuesday, April 26, 2011 3:11 PM -
3 Votes
i need to validate if string in any format is typeof datetime..
i need to validate if string in any format is typeof datetime..Answered | 5 Replies | 2184 Views | Created by 2xo1 - Monday, November 3, 2014 11:43 AM | Last reply by WayneAKing - Wednesday, November 5, 2014 10:36 PM -
1 Votes
C# valid datetime value
object dateTimeValue = GetDateTimeValueFromDB(); DateTime dt; if(!Answered | 2 Replies | 3616 Views | Created by wendy elizabeth - Thursday, October 18, 2012 4:19 PM | Last reply by Adavesh - Thursday, October 18, 2012 4:31 PM -
1 Votes
how to convert a string to datetime object?
This works: DateTime date = DateTime.ParseExact (date_time, "yyyy-MM-dd HH:mm:ss zzzz", CultureInfo.InvariantCulture); Best ...Answered | 6 Replies | 3650 Views | Created by Lynda Li - Monday, February 1, 2010 11:16 PM | Last reply by Lynda Li - Tuesday, February 2, 2010 12:31 AM -
3 Votes
Convert datetime value to string
I tried this Dim dts As String = CStr(mo("StartTime")) Dim theDate As New DateTime(CInt(dts.Substring(0, 4)), CInt(dts.Substring(4, ...Answered | 8 Replies | 1842 Views | Created by RobbieOwens - Thursday, March 29, 2012 2:32 PM | Last reply by RobbieOwens - Thursday, March 29, 2012 5:48 PM -
0 Votes
String was not recognized as a valid DateTime.
User643189141 posted I tried to use: from xml file is date 20120205 string dateString, format; DateTime result; ...Answered | 4 Replies | 59 Views | Created by Anonymous - Thursday, June 27, 2013 2:29 PM | Last reply by Anonymous - Thursday, June 27, 2013 5:28 PM -
0 Votes
String was not recognized as a valid DateTime.
User915692107 posted Hi Try the below, If the value is not entered in the textbox or else invalid datetime enterd into the textbox ,The above ...Answered | 5 Replies | 54 Views | Created by Anonymous - Tuesday, September 14, 2010 1:34 AM | Last reply by Anonymous - Tuesday, September 14, 2010 11:35 AM -
0 Votes
String was not recognized as a valid DateTime
then it will give error message when update, if datetime field have date there, it won't show the error message.Unanswered | 8 Replies | 46 Views | Created by Anonymous - Sunday, August 14, 2005 9:43 PM | Last reply by Anonymous - Monday, December 3, 2007 6:24 PM
No announcements