Re: [WebDNA] Feature requests - date format

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 104262
interpreted = N
texte =
Nice workaround, Chris!


On Sat, 26 Dec 2009 23:21:07 -0200
christophe.billiottet@webdna.us wrote= :
> what about
>
> [grep search=3D 0&replace=3D ]
> [Format Days_To_Date %A, %B %d,
= >%Y][math]{[eventdate]}[/math][/Format]
> [/grep]
>
> - chris
>
> On Dec 26, 2009, at 23:= 02, Terry Wilson wrote:
>
>> You guys are missing the point. I'm talking about
>>formatting = a date field such as
>>
>> [Format Days_To_Date %A, %B %d,
>>%Y][math]{[eventdate]}[/math]= [/Format]
>>
>> Currently, something like the above looks like
>>
>> Friday, Janu= ary 01, 2010 -- ugly! So I have to do this
>>to get January 1, 2010
>>
>> [format days_= to_date
>>%A][math]{[eventdate]}[/math][/format], [format
>>days_to_date %b][math]{[eventdate]}[/math][/format] <= br>>>[math][format days_to_date
>>%d][math]{[eventdate]}[/math][/format][/math], [format
&g= t;>days_to_date %Y][math]{[eventdate]}[/math][/format]
>>
>> (It perfo= rms math on the day portion to turn it into an
>>integer.)
>>
>> I display dates all the ti= me on web pages, and it just
>>looks awful to show a leading zero in a written out date.
>>Customers= also complain about it, they really do.
>>
>> This what is currently available:
>>= ;
>> %a....: Abbreviated weekday name "Wed"
>> %A....: Full weekday name "Wednesday"
>> %b...= .: Abbreviated month name "Feb"
>> %B....: Full month name "February"
>> %c....: Date and time "Wed= Sep 19 18:24:21 2010"
>> %d....: Day of month 01-31
>> %H....: Hour 00-23
>> %I....: Hour 01= -12
>> %j....: Day of year 001-365
>> %m....: Month 01-12
>> %M....: Minute 00-59<= br>>> %p....: AM or PM
>> %S....: Seconds 00-59
>> %U....: Week # of year, Sunday first da= y of week
>> %w....: Weekday 0 (Sunday) - 6 (Saturday)
>> %W....: Week # of year, Monday first = day of week
>> %x....: Date as Sep 11 2008
>> %X....: Time as 14:01:12
>> %y....: Year withou= t century 00-99
>> %Y....: Year with century 1900-2199
>> %z....: offset of server
>> %Z....= : Time zone of server
>> %%....: %
>>
>> I propose adding %j for day of month without l= eading 0.
>>PHP also has one for the month without the leading zero
>>and a bunch of other formats, = like the number of days in
>>a month. It would great to add all these formats present
>>in php to bri= ng WebDNA up to parity with php.
>>
>> Terry
>>
>>> Better yet, write a funct= ion and call it date. That
>>>will overwrite
>>> the native method within p= ages using that function.
>>> Plus there's one
>>> less keyword to remember.
>>> >>> Bill
>>>
>>> On Thu, Dec 24, 2009 at 1:14 PM, Donovan Brooke
>= >><dbrooke@webdna.us> wrote:
>>>> Terry Wilson wrote:
>>>>> >>>>> How about a date format that does not have the leading
>>>>>zero? i.e., like d= ,
>>>>> but without the zeroes, like the j in php. Currently I
>>>>>jump throu= gh hoops
>>>>> splitting the date up and using [math] to make this
>>>>>happen.
= >>>>>
>>>>> Terry
>>>>
>>>>
>>>> you c= ould write a function, then call that..
>>>>
>>>> [cleandate [date]]
>= ;>>>
>>>> Donovan
>>>>
>>>>
>>>> >>>> --
>>>> Donovan Brooke
>>>> WebDNA Software Corporation
>>= ;>> http://www.webdna.us
>>>> **[Square Bracket Utopia]**
>>>> -------------------------= --------------------------------
>>>> This message is sent to you because you are subscribed
>>>&g= t;to
>>>> the mailing list <talk@webdna.us>.
>>>> To unsubscribe, E-mail to: &l= t;talk-leave@webdna.us>
>>>> archives: http://mail.webdna.us/list/talk@webdna.us
>>>> o= ld archives: http://dev.webdna.us/TalkListArchive/
>>>> Bug Reporting:
>>>>http://forum.webdna.us/eucabb.html?pag= e=3Dtopics&category=3D288
>>>>
>>> --------------------------------------------------------= -
>>> This message is sent to you because you are subscribed
>>>to
>>> the mailing= list <talk@webdna.us>.
>>> To unsubscribe, E-mail to: <talk-leave@webdna.us>
>>> a= rchives: http://mail.webdna.us/list/talk@webdna.us
>>> old archives: http://dev.webdna.us/TalkListArchive/
>>> Bug R= eporting:
>>>http://forum.webdna.us/eucabb.html?page=3Dtopic= s&category=3D288
>>
>> --
>> Terry Wilson | terry@terryfic.com | http://t= erryfic.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.=
>> --------------------------------------------------------->> This message is sent to you because you are subscribed
>>to
= >> the mailing list <talk@webdna.us>.
>> To unsubscribe, E-mail to: <talk-l= eave@webdna.us>
>> archives: http://mail.webdna.us/list/talk@webdna.us
>> old archives: http:= //dev.webdna.us/TalkListArchive/
>> Bug Reporting:
>>http://forum.webdna.us/eucabb.html?page=3Dtopi= cs&category=3D288
>
> ---------------------------------------------------------
> This me= ssage is sent to you because you are subscribed
>to
> the mailing list <talk@webdna.us>.
> To un= subscribe, E-mail to: <talk-leave@webdna.us>
> archives: http://mail.webdna.us/list= /talk@webdna.us
> old archives: http://dev.webdna.us/TalkListArchive/
> Bug Reporting:
>http= ://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288

=A0=
Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Feature requests - date format (Dan Strong 2009)
  2. Re: [WebDNA] Feature requests - date format ("Terry Wilson" 2009)
  3. Re: [WebDNA] Feature requests - date format ("Terry Wilson" 2009)
  4. Re: [WebDNA] Feature requests - date format (Dan Strong 2009)
  5. Re: [WebDNA] Feature requests - date format (Matthew Bohne 2009)
  6. Re: [WebDNA] Feature requests - date format (Dan Strong 2009)
  7. Re: [WebDNA] Feature requests - date format ("Terry Wilson" 2009)
  8. Re: [WebDNA] Feature requests - date format (christophe.billiottet@webdna.us 2009)
  9. Re: [WebDNA] Feature requests - date format (Terry Wilson 2009)
  10. Re: [WebDNA] Feature requests - date format (William DeVaul 2009)
  11. Re: [WebDNA] Feature requests - date format (Donovan Brooke 2009)
  12. [WebDNA] Feature requests - date format (Terry Wilson 2009)
Nice workaround, Chris!


On Sat, 26 Dec 2009 23:21:07 -0200
christophe.billiottet@webdna.us wrote= :
> what about
>
> [grep search=3D 0&replace=3D ]
> [Format Days_To_Date %A, %B %d,
= >%Y][math]{[eventdate]}[/math][/Format]
> [/grep]
>
> - chris
>
> On Dec 26, 2009, at 23:= 02, Terry Wilson wrote:
>
>> You guys are missing the point. I'm talking about
>>formatting = a date field such as
>>
>> [Format Days_To_Date %A, %B %d,
>>%Y][math]{[eventdate]}[/math]= [/Format]
>>
>> Currently, something like the above looks like
>>
>> Friday, Janu= ary 01, 2010 -- ugly! So I have to do this
>>to get January 1, 2010
>>
>> [format days_= to_date
>>%A][math]{[eventdate]}[/math][/format], [format
>>days_to_date %b][math]{[eventdate]}[/math][/format] <= br>>>[math][format days_to_date
>>%d][math]{[eventdate]}[/math][/format][/math], [format
&g= t;>days_to_date %Y][math]{[eventdate]}[/math][/format]
>>
>> (It perfo= rms math on the day portion to turn it into an
>>integer.)
>>
>> I display dates all the ti= me on web pages, and it just
>>looks awful to show a leading zero in a written out date.
>>Customers= also complain about it, they really do.
>>
>> This what is currently available:
>>= ;
>> %a....: Abbreviated weekday name "Wed"
>> %A....: Full weekday name "Wednesday"
>> %b...= .: Abbreviated month name "Feb"
>> %B....: Full month name "February"
>> %c....: Date and time "Wed= Sep 19 18:24:21 2010"
>> %d....: Day of month 01-31
>> %H....: Hour 00-23
>> %I....: Hour 01= -12
>> %j....: Day of year 001-365
>> %m....: Month 01-12
>> %M....: Minute 00-59<= br>>> %p....: AM or PM
>> %S....: Seconds 00-59
>> %U....: Week # of year, Sunday first da= y of week
>> %w....: Weekday 0 (Sunday) - 6 (Saturday)
>> %W....: Week # of year, Monday first = day of week
>> %x....: Date as Sep 11 2008
>> %X....: Time as 14:01:12
>> %y....: Year withou= t century 00-99
>> %Y....: Year with century 1900-2199
>> %z....: offset of server
>> %Z....= : Time zone of server
>> %%....: %
>>
>> I propose adding %j for day of month without l= eading 0.
>>PHP also has one for the month without the leading zero
>>and a bunch of other formats, = like the number of days in
>>a month. It would great to add all these formats present
>>in php to bri= ng WebDNA up to parity with php.
>>
>> Terry
>>
>>> Better yet, write a funct= ion and call it date. That
>>>will overwrite
>>> the native method within p= ages using that function.
>>> Plus there's one
>>> less keyword to remember.
>>> >>> Bill
>>>
>>> On Thu, Dec 24, 2009 at 1:14 PM, Donovan Brooke
>= >><dbrooke@webdna.us> wrote:
>>>> Terry Wilson wrote:
>>>>> >>>>> How about a date format that does not have the leading
>>>>>zero? i.e., like d= ,
>>>>> but without the zeroes, like the j in php. Currently I
>>>>>jump throu= gh hoops
>>>>> splitting the date up and using [math] to make this
>>>>>happen.
= >>>>>
>>>>> Terry
>>>>
>>>>
>>>> you c= ould write a function, then call that..
>>>>
>>>> [cleandate [date]]
>= ;>>>
>>>> Donovan
>>>>
>>>>
>>>> >>>> --
>>>> Donovan Brooke
>>>> WebDNA Software Corporation
>>= ;>> http://www.webdna.us
>>>> **[Square Bracket Utopia]**
>>>> -------------------------= --------------------------------
>>>> This message is sent to you because you are subscribed
>>>&g= t;to
>>>> the mailing list <talk@webdna.us>.
>>>> To unsubscribe, E-mail to: &l= t;talk-leave@webdna.us>
>>>> archives: http://mail.webdna.us/list/talk@webdna.us
>>>> o= ld archives: http://dev.webdna.us/TalkListArchive/
>>>> Bug Reporting:
>>>>http://forum.webdna.us/eucabb.html?pag= e=3Dtopics&category=3D288
>>>>
>>> --------------------------------------------------------= -
>>> This message is sent to you because you are subscribed
>>>to
>>> the mailing= list <talk@webdna.us>.
>>> To unsubscribe, E-mail to: <talk-leave@webdna.us>
>>> a= rchives: http://mail.webdna.us/list/talk@webdna.us
>>> old archives: http://dev.webdna.us/TalkListArchive/
>>> Bug R= eporting:
>>>http://forum.webdna.us/eucabb.html?page=3Dtopic= s&category=3D288
>>
>> --
>> Terry Wilson | terry@terryfic.com | http://t= erryfic.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.=
>> --------------------------------------------------------->> This message is sent to you because you are subscribed
>>to
= >> the mailing list <talk@webdna.us>.
>> To unsubscribe, E-mail to: <talk-l= eave@webdna.us>
>> archives: http://mail.webdna.us/list/talk@webdna.us
>> old archives: http:= //dev.webdna.us/TalkListArchive/
>> Bug Reporting:
>>http://forum.webdna.us/eucabb.html?page=3Dtopi= cs&category=3D288
>
> ---------------------------------------------------------
> This me= ssage is sent to you because you are subscribed
>to
> the mailing list <talk@webdna.us>.
> To un= subscribe, E-mail to: <talk-leave@webdna.us>
> archives: http://mail.webdna.us/list= /talk@webdna.us
> old archives: http://dev.webdna.us/TalkListArchive/
> Bug Reporting:
>http= ://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288

=A0=
"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:

Database Import/Export (1998) Nested [tags] (2001) [WebDNA] FastCGI version confusion (2011) Server Freeze (1998) [FEATURE REQUEST] (2004) Public beta 6 for WebCatalog 4.0 is now available (2000) WebCat2 - [format thousands] (1997) [WebDNA] V7 Download (2011) more re newbie ? re ssl/non-ssl (1999) WebCatalog 3.0.4 alias crash bug? (2000) Email header munger in [sendmail] (2004) Web Developer Product Awards (1997) WebCat with WebTen (1998) Multiple prices (1997) Occasional crashes with $remove (1997) Sku numbers (1997) [SHOWIF AND/OR] (1997) include bug????? (1997) How to redirect based on price subtotal? (1998) Rhapsody? (1997)