tags:

views:

81

answers:

3

I was reading this archive on joel on sw http://www.joelonsoftware.com/articles/TwoStories.html

here he mentions he wanted to make a date field free format. Then I thought how would someone do that? ofcourse search in gmail does it.

has anyone implemented this before? and how?

A: 

PHP's strtotime() is a very nice implementation of this.

Ólafur Waage
+1  A: 

You could check out any of the following date parsing implementations

vezult
A: 

If you have users both side of the Atlantic you'll need to prevent 09/10/11 style dates explicitly as much confusion will happen - either require the month in letters or use a drop-down for it and abandon free-form. Remember 09/11 is the ninth of November in Europe. Using an IP address's location to disambiguate fails because Europeans and Americans can cross the Atlantic!