Hi, I have split strings(multiple) in a string buffer into two parts(arr,arr) and stored it in an array.How do i check if the string stored is a date or decimal or a word. Can anyone give me the solution to it.
If I read the previous post correctly, he is saying to rely on exceptions to detect data types. That would would work on a small scale, but will give performance problems on large systems. For the latter, a better approach is to parse the entries yourself & branch base on the data type you detect.
Joined: Oct 14, 2005
Would "Thursday" be a date or a word. How about 20060130? Looks like a huge number to me, but could as well denote the 30th January 2006.
As you see there no way to prescribe a solution without a more detailed specification. But before posting the spec here, I suggest to have a look at regular expressions.