StackOverflow Questions for Tag: tryparse

L3n95
L3n95

Reputation: 1615

Parse DateTime with and without leading zeros

Score: 12

Views: 9025

Answers: 1

Read More
user541686
user541686

Reputation: 210352

Is there a Python equivalent to C#'s DateTime.TryParse() i.e. avoids throwing exception on parse failure?

Score: 35

Views: 34554

Answers: 8

Read More
Piers Myers
Piers Myers

Reputation: 10899

Generic TryParse

Score: 225

Views: 111661

Answers: 26

Read More
Bartosz Baszyński
Bartosz Baszyński

Reputation: 21

How do i do in C# that if the user types not a number it writes invalid input and if its a number it continues?

Score: 0

Views: 37

Answers: 0

Read More
Shaggydog
Shaggydog

Reputation: 3788

Culture invariant Decimal.TryParse()

Score: 54

Views: 105829

Answers: 5

Read More
NeedAnswers
NeedAnswers

Reputation: 1435

Dynamic TryParse for all data types

Score: 5

Views: 7522

Answers: 3

Read More
Shaggydog
Shaggydog

Reputation: 3788

Safely converting string to bool in PowerShell

Score: 36

Views: 59058

Answers: 7

Read More
renanleandrof
renanleandrof

Reputation: 6997

What is better: int.TryParse or try { int.Parse() } catch

Score: 68

Views: 53913

Answers: 9

Read More
MaxK
MaxK

Reputation: 11

Why does DateTime.TryParse fail to parse negative (-ve) years for BC/BCE dates in ISO 8601 date format

Score: 0

Views: 45

Answers: 0

Read More
Nikkawat
Nikkawat

Reputation: 79

Parsing "dd MMMM, yyyy" using DateTime.TryParseExact

Score: -2

Views: 136

Answers: 1

Read More
Tsaras
Tsaras

Reputation: 493

c# variable culture string to invariant culture double

Score: -1

Views: 97

Answers: 2

Read More
Sunil
Sunil

Reputation: 2905

int.TryParse() returns false for "#.##"

Score: 18

Views: 18695

Answers: 10

Read More
Calendoscopio
Calendoscopio

Reputation: 1

TryParseExact does not convert a string with timezone

Score: -1

Views: 121

Answers: 2

Read More
Rocky Singh
Rocky Singh

Reputation: 15420

DateTime.TryParse issue with dates of yyyy-dd-MM format

Score: 105

Views: 259838

Answers: 7

Read More
mweber
mweber

Reputation: 1302

Enum.TryParse returns true for any numeric values

Score: 73

Views: 19039

Answers: 4

Read More
Sandra
Sandra

Reputation: 1

Create a Windows application that contains two textboxes and two buttons

Score: -2

Views: 3651

Answers: 6

Read More
G_Hosa_Phat
G_Hosa_Phat

Reputation: 1110

DateTime.TryParseExact Doesn't Work With Single-Digit Day or Month, Regardless of Format String

Score: 1

Views: 321

Answers: 1

Read More
CSharp2023
CSharp2023

Reputation: 1

How do I run this code without using try catch?

Score: 0

Views: 61

Answers: 1

Read More
Nitik Paudel
Nitik Paudel

Reputation: 9

How to handle Unhandled exceptions in c# using TryParse

Score: -1

Views: 186

Answers: 2

Read More
CupOfT
CupOfT

Reputation: 11

Double tryparse return value is inconsistent

Score: 0

Views: 84

Answers: 1

Read More
PreviousPage 1Next