3
How do I check whether the date is valid in C or not#?
In VB6 I did like this:
If Not IsDate(strAux) Then
In the case of C#, how do I?
My code in C#:
//Data Movimento
string strTxt = fileHeader.Substring(17, 8).ToString("YYYYMMDD");
if (!Equals(strTxt)) // verificar se é data válida
{
// logFile "ERRO", "Data de Movimento invalida no Header no arquivo."
return null;
}
Thank you very much!!! that’s right.
– Thathi
@Thathi You can mark the answer as correct using the V on the left side of it.
– Jéf Bueno