I use this expression to convert from System.Text>RegularExpressions.Match to DateTime
and it gives me the result in mm/dd/yyyy 00:00:00
how to get read of those 00:00:00 ?
I use this expression to convert from System.Text>RegularExpressions.Match to DateTime
how to get read of those 00:00:00 ?
If you need string, you can use like that;
invoiceDate.ToString(“MM/dd/yyyy”)
can you be more clear means whats your input and whats your expected output
@Cardon_Cezar I don’t think it’s possible to retain only the Date part as DateTime, since the Standard Convention of DateTime or Date type in c# or vb.net has both Date and Time representation. So only way is to get the Date format might be to convert it into a String.