36 if (_v.length() <= 4) {
37 return Value(QDateTime::fromString(_v,
"yyyy"));
38 }
else if (_v.length() <= 7) {
39 return Value(QDateTime::fromString(_v,
"yyyy-MM"));
40 }
else if (_v.length() <= 10) {
41 return Value(QDateTime::fromString(_v,
"yyyy-MM-dd"));
42 }
else if (_v.length() <= 16) {
43 return Value(QDateTime::fromString(_v,
"yyyy-MM-ddThh:mm"));
44 }
else if (_v.length() <= 19) {
45 return Value(QDateTime::fromString(_v,
"yyyy-MM-ddThh:mm:ss"));
47 return Value(QDateTime::fromString(_v));