Re: [OT] Storing Birth Date

2004-06-29 Thread Jorge Salido
> My experience differs from Jorge. > A generic date should do well, and still give you all the date functions. The only > problem with storing dates as a number is doing date arithmetic ( say sending an > email to all people whose birthday is 5 days away) and things like that. It's not a > tr

RE: [OT] Storing Birth Date

2004-06-29 Thread Jim Barrows
> -Original Message- > From: Jorge Salido [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 1:01 PM > To: Struts Users Mailing List > Subject: Re: [OT] Storing Birth Date > > stuff I agree with > > Other than that, how you store the date is

Re: [OT] Storing Birth Date

2004-06-29 Thread Jorge Salido
I would certainly not use timestamps. A timestamp is certainly useful when you want to record current time (like a snapshot), but not past dates. And even then be aware of timestamps... And anyway, since timestamp also contains time data, it is not being efficient (at least by that standard). Cetai

Re: [OT] Storing Birth Date

2004-06-26 Thread Michael McGrady
There are lots of ways to do this, of course, but I have found over the years that working from a long value works best for me. From there you can go any direction. Michael At 09:46 AM 6/26/2004, Rick Reumann wrote: Eddie Yan wrote: Anyone know what is the best practices to store a person date

Re: [OT] Storing Birth Date

2004-06-26 Thread Rick Reumann
Eddie Yan wrote: Anyone know what is the best practices to store a person date of birth ? How should we design our detail object, JSP and database in such way we don't have a messy approached to populate the day, month and year in Action class to be able to display in JSP during UPDATE process. Cur

Re: [OT] Storing Birth Date

2004-06-26 Thread Eddie Yan
Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, June 26, 2004 8:05 PM Subject: Re: [OT] Storing Birth Date > I do string - calendar conversion in an action form, its gets and sets > strings modifying a calendar object which can be then given to the > action ready to be saved bac

Re: [OT] Storing Birth Date

2004-06-26 Thread Mark Lowe
I do string - calendar conversion in an action form, its gets and sets strings modifying a calendar object which can be then given to the action ready to be saved back to the model. private Calendar dob = Calendar.getInstance(); public String getDayOfBirth() { int dayInt = dob.get(Calend