I have a string value that contains or a Hebrew date, or a Gregorian date. How can I determine if it’s Gregorian or Hebrew in C#?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the
TryParsemethod of theDateTimeobject – if it failed with the Hebrew culture you can then try with the Gregorian calendar: