Top "Tryparse" questions

Converts the string representation of an object to its typed equivalent.

valid date check with DateTime.TryParse method

I am using Datetime.TryParse method to check the valid datetime. the input date string would be any string data. …

c# datetime tryparse
How to (try)parse a single String to DateTime in "DD/MM/YYYY" format? (VB.Net)

How to (try)parse a single String to DateTime in "DD/MM/YYYY" format? (VB.Net) For example: I use …

vb.net datetime parsing format tryparse
What is better: int.TryParse or try { int.Parse() } catch

I know.. I know... Performance is not the main concern here, but just for curiosity, what is better? bool parsed = …

c# .net parsing type-conversion tryparse
Int32.TryParse() or (int?)command.ExecuteScalar()

I have a SQL query which returns only one field - an ID of type INT. And I have to …

c# .net ado.net tryparse executescalar
How to check for empty textbox

On a site I found the TryParse method (how to check if there is a empty textbox in C#) but …

c# tryparse
Safely converting string to bool in PowerShell

I'm trying to convert an argument of my PowerShell script to a boolean value. This line [System.Convert]::ToBoolean($a) …

powershell boolean tryparse
Why do all TryParse overloads have an out parameter?

I have discovered that many times I don't need the out parameter of the TryParse method, but the problem that …

c# tryparse
Is there a GUID.TryParse() in .NET 3.5?

UPDATE Guid.TryParse is available in .NET 4.0 END UPDATE Obviously there is no public GUID.TryParse() in .NET CLR 2.0. So, …

c# asp.net guid tryparse
Check if string is numeric in one line of code

I'm working with a DNN form-building module that allows for some server-side code to be run based on a condition. …

c# string int dotnetnuke tryparse
Is there a Python equivalent to C#'s DateTime.TryParse()?

Is there an equivalent to C#'s DateTime.TryParse() in Python? I'm referring to the fact that it avoids throwing …

python parsing datetime exception tryparse