No announcements
Found 1856304 threads
-
1 Votes
C# valid datetime value
You can use DateTime.TryParse or TryParseExact (if you know the format of the incoming DateTime Value).Answered | 2 Replies | 3769 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
The string '201304032122' is not a valid DateTime value
Thanks all, I tried with inline c# scripting.Answered | 9 Replies | 5200 Views | Created by ArchanaVenkatasamy - Monday, June 10, 2013 11:22 AM | Last reply by ArchanaVenkatasamy - Tuesday, June 11, 2013 7:18 AM -
1 Votes
c# .NET string not recognized as a valid datetime
You need to specify a fixed culture during saving and re-parsing of the datetime.Answered | 3 Replies | 44887 Views | Created by Our Man In Bananas - Wednesday, November 13, 2013 11:44 AM | Last reply by Christopher84 - Wednesday, November 13, 2013 3:47 PM -
4 Votes
Check if DateTime is valid
Hi Miguel, I aggree with Subhanet - while what Chris showed provides one way to crack the nut, using DateTime.TryParse is a lot easier, plus it'll also return false if the numeric ...Answered | 4 Replies | 50284 Views | Created by MDMoura - Tuesday, May 18, 2010 10:04 PM | Last reply by Olaf Rabbachin - Wednesday, May 19, 2010 7:06 AM -
0 Votes
(Date Comparision) string was not recognized as a valid datetime in c#
You would be much better off altering your database query to simply return a Date (or DateTime) in the first place rather than using CONVERT to turn it into a string.Answered | 3 Replies | 1026 Views | Created by Gunapriyan - Wednesday, January 13, 2016 9:42 AM | Last reply by RJP1973 - Wednesday, January 13, 2016 10:12 AM -
2 Votes
valid datetime value as input to executing stored procedure with DateTime input argument?
(Note that the quotes are part of the value.)Answered | 6 Replies | 4135 Views | Created by hazz - Tuesday, October 4, 2011 9:07 PM | Last reply by hazz - Tuesday, October 4, 2011 11:09 PM -
0 Votes
getting datetime value from appsetting in c#
string[] dateStrings = {"2008-05-01T07:34:42-5:00", "2008-05-01 7:34:42Z", ...Answered | 4 Replies | 20427 Views | Created by faizi22 - Monday, March 5, 2012 12:01 PM | Last reply by Prasanna A - Tuesday, March 6, 2012 6:32 AM -
0 Votes
DateTime value
Hi You have to keep in mind that it will change the value of datatime object not in the database, you have to set the datetime instance to DataTime.MinValue, and ...Answered | 7 Replies | 3407 Views | Created by middlecowboy - Sunday, August 2, 2009 2:23 PM | Last reply by middlecowboy - Monday, August 3, 2009 2:52 PM -
0 Votes
DateTime field validation in Sharepoint
This ...Answered | 14 Replies | 11661 Views | Created by Betta123 - Wednesday, July 31, 2013 1:17 PM | Last reply by - Tuesday, August 6, 2013 5:57 AM -
0 Votes
String was not recognized as a valid DateTime.
at the other dates,Evan's suggestion could work, but you could write your own datetime conversion easyly too.Answered | 2 Replies | 3330 Views | Created by Dundigam Balaji - Thursday, July 14, 2011 8:00 AM | Last reply by Esref Durna - Thursday, July 14, 2011 9:07 AM -
0 Votes
String was not recognized as a valid DateTime - VB.net
Hello, You should use TryParse since the value is coming from a TextBox.Answered | 5 Replies | 5200 Views | Created by NurulShaf - Wednesday, October 5, 2016 4:37 AM | Last reply by Kareninstructor - Sunday, October 9, 2016 5:51 AM -
1 Votes
string was not recognized as valid datetime.
Why are you taking a DateTime, converting it to string and then back to a DateTime?Answered | 8 Replies | 1969 Views | Created by aivarinns - Friday, February 8, 2013 11:54 AM | Last reply by Christopher84 - Saturday, February 9, 2013 10:02 AM -
2 Votes
C# DateTime Default Year Abbreviation
By Adding that 1000 like in my sample as years, that 1000 simply is the value which is recalculated to the needed ticks for the DateTime.Answered | 5 Replies | 2866 Views | Created by MarkHizzle - Saturday, November 5, 2011 5:40 AM | Last reply by Cor Ligthert - Monday, November 7, 2011 10:04 AM -
1 Votes
datetime format on C# WinForm
As Shang proposed, use some control like datetimepicker or monthcalendar, to "force" the value into a specific format.Answered | 4 Replies | 5355 Views | Created by E_gold - Monday, May 21, 2012 8:19 PM | Last reply by Bob Wu-MT - Monday, May 28, 2012 5:05 AM -
5 Votes
DateTime variable with no value
: Error 1 'morning_backup' conflicts with the declaration 'JRMS_Dashboard.frmMain.morning_backup' C:\Documents and Settings\Jassim\My Documents\Visual Studio ...Answered | 9 Replies | 2835 Views | Created by Jassim Rahma - Monday, July 6, 2009 12:22 PM | Last reply by Jassim Rahma - Monday, July 6, 2009 1:19 PM -
0 Votes
DateTime Utility in C#
Thanh you for all, Now I have a trouble in Datetime, I want to get help ...Answered | 9 Replies | 9520 Views | Created by undynamicmagic - Friday, November 21, 2008 4:23 AM | Last reply by undynamicmagic - Tuesday, November 25, 2008 9:58 AM -
0 Votes
DateTime format conversion in c#
The appearance of a DateTime value is the result of a formatting operation.Answered | 4 Replies | 7882 Views | Created by Kevin Peterson. _ - Wednesday, March 25, 2009 1:39 PM | Last reply by Guo Surfer - Wednesday, April 1, 2009 4:08 AM -
1 Votes
Convert Datetime to String in C#
Just format the DateTime you start with.Answered | 1 Replies | 77584 Views | Created by Dkrishna - Friday, May 25, 2018 3:35 AM | Last reply by Ante Meridian - Friday, May 25, 2018 3:54 AM -
2 Votes
Combine a DateTime value and an Integer value representing time into one DateTime value
I was looking for something better than your first suggestion, I felt that: DateTime adjusted = myDateTime.Date.AddMinutes(60*(myTime/100) + ...Answered | 10 Replies | 3188 Views | Created by TheLearner - Thursday, August 21, 2008 9:49 AM | Last reply by David M Morton - Friday, August 22, 2008 1:27 AM -
0 Votes
error: String was not recognized as a valid DateTime.
And one more question - if workflowProperties.Item["Period_x0020_End"] is a date field, why do you want to convert its value to string and then save it?Answered | 4 Replies | 7113 Views | Created by Nachiket Kamat - Tuesday, August 16, 2011 7:10 AM | Last reply by Nachiket Kamat - Tuesday, August 16, 2011 9:13 AM - Items 1 to 20 of 1856304 Next ›
No announcements