Re: Date Sorting

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13699
interpreted = N
texte = >Can anyone suggest where I'm going wrong on this date sort. > >I have a database with date information stored in the day/month/year format. >It is stored numerically ie 31/9/1997 and the field is called entrydate > >I want to sort the accompanying records in descending date order based on >their entry date into the system. >I'm using the following sort URL command : > >/SearchResults.tmpl$search?db=Classifieds.db&entrydatesort=1&datetype=Date&entr >y >datesdir=de&neUniqueIddata=0&max=15 Your search parameter &datetype=Date should be &entrydatetype=Date ... :) Also, it's a lot safer to store your dates in the database in the default MM/DD/YYYY format, and then to change the format to DD/MM/YYYY if you want your users to see the dates in that format.Storing the dates in *other than* the default format may create problems you would not have to deal with otherwise, so if my suggestion regarding the search parameter doesn't work, it might be worth it to try changing your default date format back to the way it was originally - MM/DD/YYYY. Yes, that means changing all your existing database records to reflect this format as well ...Sincerely, Ken Grome WebDNA Solutions http://www.hui.net/dna/webdna.html Associated Messages, from the most recent to the oldest:

    
  1. Re: Date sorting ( charles kline 2004)
  2. Re: Date sorting ( Tim Robinson 2004)
  3. Re: Date sorting ( Jesse Proudman 2004)
  4. Date sorting ( charles kline 2004)
  5. Re: Date sorting (Kenneth Grome 2000)
  6. Date sorting (Bjørn Are Solstad 2000)
  7. Re: Goofy Date Sorting (Michael Winston 1998)
  8. Re: Goofy Date Sorting (Peter Ostry 1998)
  9. Goofy Date Sorting (The Mooseman 1998)
  10. Re: date sorting and 'template (Grant Hulbert 1997)
  11. date sorting and 'template (Dan Keldsen 1997)
  12. Re: Date Sorting (Kenneth Grome 1997)
  13. Date Sorting (Tim Rignold 1997)
  14. Re: Date sorting (Kenneth Grome 1997)
  15. Re: Date sorting (Britt T. 1997)
  16. Date sorting (Britt T. 1997)
  17. Re: Date Sorting (Grant Hulbert 1997)
  18. Re: Date Sorting (Glenn Davis 1997)
  19. Re: Date Sorting (Grant Hulbert 1997)
  20. Date Sorting (Glenn Davis 1997)
>Can anyone suggest where I'm going wrong on this date sort. > >I have a database with date information stored in the day/month/year format. >It is stored numerically ie 31/9/1997 and the field is called entrydate > >I want to sort the accompanying records in descending date order based on >their entry date into the system. >I'm using the following sort URL command : > >/SearchResults.tmpl$search?db=Classifieds.db&entrydatesort=1&datetype=Date&entr >y >datesdir=de&neUniqueIddata=0&max=15 Your search parameter &datetype=Date should be &entrydatetype=Date ... :) Also, it's a lot safer to store your dates in the database in the default MM/DD/YYYY format, and then to change the format to DD/MM/YYYY if you want your users to see the dates in that format.Storing the dates in *other than* the default format may create problems you would not have to deal with otherwise, so if my suggestion regarding the search parameter doesn't work, it might be worth it to try changing your default date format back to the way it was originally - MM/DD/YYYY. Yes, that means changing all your existing database records to reflect this format as well ...Sincerely, Ken Grome WebDNA Solutions http://www.hui.net/dna/webdna.html Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

time and welcome (1999) Running _every_ page through WebCat ? (1997) Error Log.db --however (1997) WebCat2 - [include] tags (1997) TCP/IP connect (1998) Separate SSL Server (1997) WebMerchant and PC Auth Hub (1999) WebCat b15 Mac plug-in (1997) [/application] error? (1997) WebDNA with WebStar V (2003) =?ISO-8859-1?Q?R=E9p_:_[WebDNA]_[showif]_problem_*solved*?= (2009) WebCat2: Formulas.db question (1997) Help formatting search results w/ table (1997) WebCat2b15MacPlugin - [protect] (1997) [WebDNA] Bug? [fileinfo..] You decide (2016) alternatives for WebDNA (2004) Emailer not working (1998) [SendMail] from a form? (1998) locking variables? (2000) Not really WebCat (1997)