use sscanf to extract info from a timestamp string. Now it supports 'YYY...

...Y-MM-DD' format. add a simple test case
This is a good start. You should also test the case of constructing a string-typed NValue from dateStr, and calling castAsTimestamp and peeking at the value. EXPECTing to get the same int64_t value back.