TecTao Posted September 9, 2011 Share Posted September 9, 2011 Before I go digging around for code or conversion to unix time stamp, I'm curious how many of you have a birthday entry on a form which is the least hassle for the person filling out the form. For example a text box and they can enter 12/1/1992 or 12/1/92 or 12-1-1992 or three text boxes for month, day and year and if so, require an 01 or a 08 or 4 characters for year. The second method with three boxes would easily convert to a date stamp entry on the other hand if there is a php conversion that would convert any format (12/1/1992, 12/01/92, etc) to a unix time stamp that would make it easier for the person filling out the form. Thanks in advance for any ideas or help. Mike Quote Link to comment https://forums.phpfreaks.com/topic/246795-advise-on-best-way-to-enter-a-birthday-on-a-form/ Share on other sites More sharing options...
Adam Posted September 9, 2011 Share Posted September 9, 2011 There's too many different ways of writing dates to reliably convert it. Can you tell me what date this is: "01/02/03"? Use select boxes. Quote Link to comment https://forums.phpfreaks.com/topic/246795-advise-on-best-way-to-enter-a-birthday-on-a-form/#findComment-1267403 Share on other sites More sharing options...
TecTao Posted September 9, 2011 Author Share Posted September 9, 2011 yes that is what I was afraid of, long and short western time, European time with the year first. Guess I'll go with the 3 text box method and force either 2 or 4 characters. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/246795-advise-on-best-way-to-enter-a-birthday-on-a-form/#findComment-1267404 Share on other sites More sharing options...
voip03 Posted September 9, 2011 Share Posted September 9, 2011 It mainly depends on where the End User are. (Depend on what part of the world they are in) Quote Link to comment https://forums.phpfreaks.com/topic/246795-advise-on-best-way-to-enter-a-birthday-on-a-form/#findComment-1267410 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.