G
Guest
Hello all,
I've written the below but am aware it's not the best way to do it. Does
anyone have any other example please? The method simply checks to see if the
value is a date.
try
{
p.Value = DateTime.Parse(coll.Get(i)).ToString("yyyy-MM-dd");
}
catch
{
p.Value = coll.Get(i);
}
Thanks all,
Jon
I've written the below but am aware it's not the best way to do it. Does
anyone have any other example please? The method simply checks to see if the
value is a date.
try
{
p.Value = DateTime.Parse(coll.Get(i)).ToString("yyyy-MM-dd");
}
catch
{
p.Value = coll.Get(i);
}
Thanks all,
Jon