Gossamer Forum
Home : Products : DBMan : Customization :

re: autoincrementing dates

Quote Reply
re: autoincrementing dates
The thread was very interesting to me , as I am currently doing a booking system.

I need to have one record for each day in the year, and I did the ID incrementing from 1999-001 as shown in that thread. ( I must have 1999 and 2000 in place of 99 and 00)And I changed the date to Unix, and its OK.
Now I need the ID to change to 2000-001 when we hit 1999-366.
As I am not very good at Perl, I would appreciate some suggestion how to do this.

Furthermore I have a field called Date, and I would really like to have the date corresponding to the ID written automatically in that field. So that the ID-field shows 1999-031 and the date 31-Jan-1999 is written in the date field.
Any ideas?



[This message has been edited by poulR (edited January 28, 1999).]
Subject Author Views Date
Thread re: autoincrementing dates poulR 2512 Jan 28, 1999, 4:39 AM
Post Re: re: autoincrementing dates
poulR 2439 Jan 27, 1999, 9:01 PM
Post Re: re: autoincrementing dates
Lauren Stegman 2444 Jan 28, 1999, 5:11 AM
Post Re: re: autoincrementing dates
poulR 2437 Jan 31, 1999, 3:51 AM