string dd =lbldt.Text.Substring(0, lbldt.Text.Length - (lbldt.Text.Length - 2));
string [] pp = dd.Split('/');
if (Convert.ToInt32(pp[0]) < 12)
{
ldatet = Convert.ToDateTime(lbldt.Text, CultureInfo.InvariantCulture);
}
else
{
ldatet = Convert.ToDateTime(lbldt.Text, CultureInfo.CreateSpecificCulture("en-AU").DateTimeFormat);
}
string [] pp = dd.Split('/');
if (Convert.ToInt32(pp[0]) < 12)
{
ldatet = Convert.ToDateTime(lbldt.Text, CultureInfo.InvariantCulture);
}
else
{
ldatet = Convert.ToDateTime(lbldt.Text, CultureInfo.CreateSpecificCulture("en-AU").DateTimeFormat);
}
No comments:
Post a Comment