Re: [WebDNA] Format Days_To_Date

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 100661
interpreted = N
texte = I haven't been following this thread too closely, but remember, there's a setting in the WebDNA prefs to tell webDNA where to break the century. I.e., whether 10/20/25 is seen as 1925 or 2025. I don't know if this has anything to do with the original problem or not. >Here's a littel test to show where it starts working, 1900: >[loop start=360&end=740062&advance=365] > [text show=t]testdate=[Format Days_To_Date %m/%d/%Y][index][/Format][/text] >- > [text show=t]testdate=[Format Days_To_Date >%m/%d/%y][index][/Format][/text]
>[/loop] > >Marc > >Stuart Tremain wrote: >> And did you notice that there is NO example of the output ???? >> >> On 05/09/2008, at 8:01 AM, Marc Thompson wrote: >> >>> Incidentally, [Format Days_To_Date %m/%d/%y]195462[/Format] comes >>>directly from the WebDNA Reference guide under >>> [Format FormatSpec]Text or Number[/Format] >>> >>> Marc >>> >>> Terry Wilson wrote: >>>> You don't know that this date is not relevant. For instance, a >>>>quick Google search tells us that Krakatoa erupted in 535 A.D. >>>> Or maybe the original poster is putting together a website for >>>>things happening in the Dark Ages. >>>>> I got the same! >>>>> >>>>> When I change to %Y I got 02/27/0535 >>>>> >>>>> >>>>> Try using a more relevant date/number such as 733655 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On 05/09/2008, at 5:13 AM, Tim Benson wrote: >>>>> >>>>>> This line [text]testdate=[Format Days_To_Date >>>>>>%m/%d/%y]195462[/Format][/text] >>>>>> Produces >>>>>> testdate = 02/27/*+ >>>>>> >>>>>> I expected a number. >>>>>> >>>>>> tim >>>>>> >>>>>> On 9/3/08 11:15 AM, "Paul Willis" wrote: >>>>>> >>>>>>> What do you get back and what are you expecting? >>>>>>> >>>>>>> %y is the year without century so 08 at the moment >>>>>>> %Y is the year with century so 2008 at the moment >>>>>>> >>>>>>> ...or my guess is you are using this inside an [orderfile] >>>>>>>where date stuff doesn't work as normal. >>>>>>> >>>>>>> Paul >>>>>>> >>>>>>> >>>>>>> On 3 Sep 2008, at 15:54, Tim Benson wrote: >>>>>>> >>>>>>>> The formatting option [Format Days_To_Date %m/%d/%y] no >>>>>>>>longer supplies the year properly, was it replaced or no >>>>>>>>longer supported? >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Timothy D. Benson (tbenson@syracusecoe.org) >>>>>>>> Information Coordinator >>>>>>>> SyracuseCoE >>>>>>>> 621 Skytop Road >>>>>>>> Syracuse, NY 13244 >>>>>>>> Tel:315-443-8756 >>>>>>>> Web:SyracuseCoe.org >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>> >>>>> --------------------------------------------------------- >>>>> This message is sent to you because you are subscribed to >>>>> the mailing list . >>>>> To unsubscribe, E-mail to: >>> >>> -- ------------------------------------------- >>> Marc Thompson >>> Software Engineer >>> Office of Information Technology >>> University of Utah >>> 801.585.9264 >>> marc.thompson@utah.edu >>> ------------------------------------------- >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> > >-- >------------------------------------------- >Marc Thompson >Software Engineer >Office of Information Technology >University of Utah >801.585.9264 >marc.thompson@utah.edu >------------------------------------------- >--------------------------------------------------------- >This message is sent to you because you are subscribed to >the mailing list . >To unsubscribe, E-mail to: -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. Associated Messages, from the most recent to the oldest:

    
  1. [BULK] Re: [WebDNA] Format Days_To_Date (Tim Benson 2008)
  2. Re: [WebDNA] Format Days_To_Date (Stuart Tremain 2008)
  3. Re: [WebDNA] Format Days_To_Date (Stuart Tremain 2008)
  4. Re: [WebDNA] Format Days_To_Date (Stuart Tremain 2008)
  5. Re: [WebDNA] Format Days_To_Date (Terry Wilson 2008)
  6. Re: [WebDNA] Format Days_To_Date (Marc Thompson 2008)
  7. Re: [WebDNA] Format Days_To_Date (Stuart Tremain 2008)
  8. Re: [WebDNA] Format Days_To_Date (Marc Thompson 2008)
  9. Re: [WebDNA] Format Days_To_Date (Marc Thompson 2008)
  10. Re: [WebDNA] Format Days_To_Date (Stuart Tremain 2008)
  11. Re: [WebDNA] Format Days_To_Date (Marc Thompson 2008)
  12. Re: [WebDNA] Format Days_To_Date (Stuart Tremain 2008)
  13. Re: [WebDNA] Format Days_To_Date (Terry Wilson 2008)
  14. Re: [WebDNA] Format Days_To_Date (Stuart Tremain 2008)
  15. Re: [WebDNA] Format Days_To_Date (Stuart Tremain 2008)
  16. Re: [WebDNA] Format Days_To_Date ("William DeVaul" 2008)
  17. Re: [WebDNA] Format Days_To_Date ("William DeVaul" 2008)
  18. Re: [WebDNA] Format Days_To_Date (Donovan Brooke 2008)
  19. Re: [WebDNA] Format Days_To_Date (Tim Benson 2008)
  20. Re: [WebDNA] Format Days_To_Date (Paul Willis 2008)
  21. [WebDNA] Format Days_To_Date (Tim Benson 2008)
I haven't been following this thread too closely, but remember, there's a setting in the WebDNA prefs to tell webDNA where to break the century. I.e., whether 10/20/25 is seen as 1925 or 2025. I don't know if this has anything to do with the original problem or not. >Here's a littel test to show where it starts working, 1900: >[loop start=360&end=740062&advance=365] > [text show=t]testdate=[Format Days_To_Date %m/%d/%Y][index][/Format][/text] >- > [text show=t]testdate=[Format Days_To_Date >%m/%d/%y][index][/Format][/text]
>[/loop] > >Marc > >Stuart Tremain wrote: >> And did you notice that there is NO example of the output ???? >> >> On 05/09/2008, at 8:01 AM, Marc Thompson wrote: >> >>> Incidentally, [Format Days_To_Date %m/%d/%y]195462[/Format] comes >>>directly from the WebDNA reference guide under >>> [Format FormatSpec]Text or Number[/Format] >>> >>> Marc >>> >>> Terry Wilson wrote: >>>> You don't know that this date is not relevant. For instance, a >>>>quick Google search tells us that Krakatoa erupted in 535 A.D. >>>> Or maybe the original poster is putting together a website for >>>>things happening in the Dark Ages. >>>>> I got the same! >>>>> >>>>> When I change to %Y I got 02/27/0535 >>>>> >>>>> >>>>> Try using a more relevant date/number such as 733655 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On 05/09/2008, at 5:13 AM, Tim Benson wrote: >>>>> >>>>>> This line [text]testdate=[Format Days_To_Date >>>>>>%m/%d/%y]195462[/Format][/text] >>>>>> Produces >>>>>> testdate = 02/27/*+ >>>>>> >>>>>> I expected a number. >>>>>> >>>>>> tim >>>>>> >>>>>> On 9/3/08 11:15 AM, "Paul Willis" wrote: >>>>>> >>>>>>> What do you get back and what are you expecting? >>>>>>> >>>>>>> %y is the year without century so 08 at the moment >>>>>>> %Y is the year with century so 2008 at the moment >>>>>>> >>>>>>> ...or my guess is you are using this inside an [orderfile] >>>>>>>where date stuff doesn't work as normal. >>>>>>> >>>>>>> Paul >>>>>>> >>>>>>> >>>>>>> On 3 Sep 2008, at 15:54, Tim Benson wrote: >>>>>>> >>>>>>>> The formatting option [Format Days_To_Date %m/%d/%y] no >>>>>>>>longer supplies the year properly, was it replaced or no >>>>>>>>longer supported? >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Timothy D. Benson (tbenson@syracusecoe.org) >>>>>>>> Information Coordinator >>>>>>>> SyracuseCoE >>>>>>>> 621 Skytop Road >>>>>>>> Syracuse, NY 13244 >>>>>>>> Tel:315-443-8756 >>>>>>>> Web:SyracuseCoe.org >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>> >>>>> --------------------------------------------------------- >>>>> This message is sent to you because you are subscribed to >>>>> the mailing list . >>>>> To unsubscribe, E-mail to: >>> >>> -- ------------------------------------------- >>> Marc Thompson >>> Software Engineer >>> Office of Information Technology >>> University of Utah >>> 801.585.9264 >>> marc.thompson@utah.edu >>> ------------------------------------------- >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> > >-- >------------------------------------------- >Marc Thompson >Software Engineer >Office of Information Technology >University of Utah >801.585.9264 >marc.thompson@utah.edu >------------------------------------------- >--------------------------------------------------------- >This message is sent to you because you are subscribed to >the mailing list . >To unsubscribe, E-mail to: -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. Terry Wilson

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) WC2f3 (1997) Tax Rates (1998) Parameter Problem ATTN: Ken Grome (1998) New public beta available (1997) Type 11 errors setting up WebCAt 2 (1997) NetSplat and WebCat2 (1997) Price problem (1997) Adding up line items. (2000) Capturing the referring site (1999) There's a bug in the math context ... (1997) [sendmail] and [formvariables] (1997) Physical Security for WebCatalog Directories (1997) WebCat2 several catalogs? (1997) Problems adding stuff to the shopping cart. (1997) Sendmail Context (2003) WC1.6 to WC2 date formatting (1997) [Switch] - works great, suggestion (2000) [WebDNA] WebDNA Store (2017) Multiple catalog databases and showcart (1997)