Re: dates and hex formatting

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14237
interpreted = N
texte = >I have a form that requires an entry date. >I then want to store this entrydate in the encoded format in the database > >11/08/1995 entered stores as 11%2F08%2F1995 > >The form field is entrydate.form that takes in the 11/08/1995 >I then APPEND the DB using entrydate=[entrydate.form] > >entrydate stores in the DB but a quick check reveals 11/08/1995 as the >content and not 11%2F08%2F1995 as I desire. > >Any suggestions would be appreciated as I want to use 11%2F08%2F1995 as >the format for the date as it forms part of a URL. Hi Tim, why don't you try this:[append db=whatever.db]entrydate=[date %m]%2F[date %d]%2F[date %Y][/append]Sincerely, Ken Grome WebDNA Solutions 808-737-6499 http://www.smithmicro.com/webdnasolutions/. Associated Messages, from the most recent to the oldest:

    
  1. Re: dates and hex formatting (Bennie Warren 1997)
  2. Re: dates and hex formatting (Kenneth Grome 1997)
  3. Re: dates and hex formatting (Grant Hulbert 1997)
  4. Re: dates and hex formatting (Kenneth Grome 1997)
  5. dates and hex formatting (Tim Rignold 1997)
  6. dates and hex formatting (Tim Rignold 1997)
>I have a form that requires an entry date. >I then want to store this entrydate in the encoded format in the database > >11/08/1995 entered stores as 11%2F08%2F1995 > >The form field is entrydate.form that takes in the 11/08/1995 >I then APPEND the DB using entrydate=[entrydate.form] > >entrydate stores in the DB but a quick check reveals 11/08/1995 as the >content and not 11%2F08%2F1995 as I desire. > >Any suggestions would be appreciated as I want to use 11%2F08%2F1995 as >the format for the date as it forms part of a URL. Hi Tim, why don't you try this:[append db=whatever.db]entrydate=[date %m]%2F[date %d]%2F[date %Y][/append]Sincerely, Ken Grome WebDNA Solutions 808-737-6499 http://www.smithmicro.com/webdnasolutions/. 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:

Multiple Users.db Possible? (1997) form data submission gets truncated (1997) quitting (1997) [WebDNA] OSX Webdna Installer (2009) blank page from template (1997) Date problems-more (1997) Not really WebCat (1997) There's a bug in the math context ... (1997) apostrophe in search item (1997) Comments in db? (1997) question: back button prevention (1997) International Orders (1998) Wanted: More Math Functions (or, Can You Solve This?) (1997) Major Security Hole (1998) can WC render sites out? (1997) variables in or out of includes (2001) UK credit card info follow-up (1997) Sorting by date (1997) bug in [SendMail] (1997) Imagemagick and fonts (2004)