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=15Your search parameter &datetype=Date should be &entrydatetype=Date ... :)Also, it's a lot safer to store your dates in the database in thedefault MM/DD/YYYY format, and then to change the format toDD/MM/YYYY if you want your users to see the dates in that format.Storing the dates in *other than* the default format may createproblems you would not have to deal with otherwise, so if mysuggestion regarding the search parameter doesn't work, it might beworth it to try changing your default date format back to the way itwas originally - MM/DD/YYYY. Yes, that means changing all yourexisting database records to reflect this format as well ...Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Associated Messages, from the most recent to the oldest:
>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=15Your search parameter &datetype=Date should be &entrydatetype=Date ... :)Also, it's a lot safer to store your dates in the database in thedefault MM/DD/YYYY format, and then to change the format toDD/MM/YYYY if you want your users to see the dates in that format.Storing the dates in *other than* the default format may createproblems you would not have to deal with otherwise, so if mysuggestion regarding the search parameter doesn't work, it might beworth it to try changing your default date format back to the way itwas originally - MM/DD/YYYY. Yes, that means changing all yourexisting database records to reflect this format as well ...Sincerely, Ken GromeWebDNA Solutionshttp://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)