Is there a natural language parser for date/times in ColdFusion?
+2
A:
I believe parseDateTime() and lsParseDateTime() are the closest to what you're looking for, from the library of built-in ColdFusion functions.
Check out Adobe's LiveDocs for other date/time functions.
Remember that you can also leverage any Java date/time class as well. Pete Freitag has an interesting post with some example code.
Jamie Krug
2009-06-16 19:23:20
natural language, as in tomorrow, yesterday, one week from today, etc.
antony.trupe
2009-06-16 19:25:32
@antony- please specify that in the original question if that's what you want. when you said "natural language", i thought that meant that it can parse a string in any format naturally used. i.e. the user could enter "1/11/94" or "january 11, 1994" or "1994.01.11" or whatever, and the parser would be smart enough to figure out the format.
Kip
2009-06-17 13:25:13
added link to Wikipedia article on NLP
antony.trupe
2009-06-19 17:14:51