Oops, I didn't even check. I just waslooking at what php has available, and it uses j. I feel that if we are t=o compete with php, we should bring the dateformat options up to par what php has
Terry
On Mon, 28 Dec 2009 10:22:25 -0500
Ma=tthew Bohne <matthew.bohne@benetela.com>wrote:
> %j is already taken (Day of the year 001-365).
>
> Why not %D? It is case sensitive.
>
>
>
> Dan Strong wrote:
>> Not that it spec=ifically solves this, but just to add...
>>I multiply my
>>
[date]s by 0 to cleanse them of le=ading zeroes. I also
>>have/had
>> clients that fixate(d) on this. Agreed that a built-in
&=gt;> "non-leading-zero" specifier (%j worksfor me) would be
>>nice.
>> -Dan
>>
>&g=t;
>> On 12/26/2009 5:45 PM, TerryWilson wrote:
>>> Nice workaround, Chris!
>>>
=>>>
>>> On Sat, 26 Dec2009 23:21:07 -0200
>>> christophe.billiottet@webdna.us wrote=:
>>> > whatabout
>>> >
>>> > [grep search=3D 0&rep=lace=3D ]
>>> > [Format Days_To_Date%A, %B %d,
>>> >%Y]
[math]{[eventdate]}[/math][/Format]
=>>> > [/grep]
>>>>
>>> > - chris
>>> >
>>> &g=t; On Dec 26, 2009, at 23:02, Terry Wilsonwrote:
>>> >
>>> >> You guys are missing= the point. I'm talking about
>>>>>formatting a date field such as
>>> >>
>&=gt;> >> [Format Days_To_Date %A, %B%d,
>>> >>%Y]
[math]{[eventdate]}[/math][/Format]
>=;>> >>
>>> >>Currently, something like the above looks like
>>> >>
>>> >> Friday, January 01,2010 -- ugly! So I have to do
>>>this
>>> >&g=t;to get January 1, 2010
>>>>>
>>> >> [format days_to_date
>>> &g=t;>%A][math]{[eventdate]}[/math][/format],[format
>>> >>days_to_date %b][math]{[eventdate]}[/math=][/format]
>>>>>[math][format days_to_date
>>> >>%d][math]{[eve=ntdate]}[/math][/format][/math],[format
>>> >>days_to_date %Y][math]{[eventdate]}[/math=][/format]
>>>>>
>>> >> (It performs math on the day portion to= turn it into
>>>an
>>>>>integer.)
>>> >>
>>> >> I dis=play dates all the time on web pages, and it
>>>just
>>> >>looks awful to show a leadin=g zero in a written out
>>>date.
>>> >>Customers also complain abo=ut it, they really do.
>>>>>
>>> >> This what is currently available:
&g=t;>> >>
>>> >>%a....: Abbreviated weekday name "Wed"
>>> >> %A....: F=ull 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....: Hour01-12
>>> >> %j....: Day of year 001-365
>>>=; >> %m....: Month 01-12
>>>>> %M....: Minute 00-59
>>> >> %p....: AM or PM>>> >> %S....: Seconds00-59
>>> >> %U....: Week # of year, Sunday first day o=f week
>>> >> %w....: Weekday0 (Sunday) - 6 (Saturday)
>>> >> %W....: Week # of year=, Monday first day of week
>>>>> %x....: Date as Sep 11 2008
>>> >> %X....: Tim=e as 14:01:12
>>> >> %y....:Year without century 00-99
>>> >> %Y....: Year with cen=tury 1900-2199
>>> >> %z....:offset of server
>>> >> %Z....: Time zone of server
=>>> >> %%....: %
>>>>>
>>> >> I propose adding %j for day of month wi=thout leading
>>>0.
>>>>>PHP also has one for the month without the leading
>>&g=t;zero
>>> >>and a bunch ofother formats, like the number of days
>>>in
>>>= >>a month. It would great to add allthese formats
>>>present
>>> >>in php to b=ring WebDNA up to parity withphp.
>>> >>
>>> >> Terry
>>&=gt; >>
>>> >>>Better yet, write a function and call it date. That
>>> >&=gt;>will overwrite
>>>>>> the native method within pages using that function.
>&=gt;> >>> Plus there'sone
>>> >>> less keyword to remember.
>>>=; >>>
>>> >>>Bill
>>> >>>
>>> >>> On Thu, De=c 24, 2009 at 1:14 PM, DonovanBrooke
>>> >>><dbrooke@webdna.us> wrote:
&g=t;>> >>>> Terry Wilsonwrote:
>>> >>>>>
>>> >>>&=gt;> How about a date format that does nothave the
>>>leading
>>> >>>>>zero=? i.e., like d,
>>>>>>>> but without the zeroes, like the j in php.
>&=gt;>Currently I
>>>>>>>>jump through hoops
>>> >>>>&g=t; splitting the date up and using [math] tomake
>>>this
>>> >>>>>happen.
=>>> >>>>>
>>>>>>>> Terry
>>> >>>>
>>&g=t; >>>>
>>>>>>> you could write a function, then call that..
>>=> >>>>
>>>>>>> [cleandate [date]]
>>> >>>>
&=gt;>> >>>>Donovan
>>> >>>>
>>> >>>>=
>>> >>>>
>>>>>>> --
>>> >>>> Donovan Brooke
&g=t;>> >>>> WebDNA SoftwareCorporation
>>> >>>> http://www.webdna.us
>=>> >>>> **[Square BracketUtopia]**
>>> >>>>
>>>--------------=-------------------------------------------
>>>>>>> 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><=br>>>> >>>> archives:http://mail.webdna.us/list/talk@webdna.us
>>> >>>>=; old archives: http://dev.webdna.us/TalkListArchive/
>>>>>>> Bug Reporting:
>>> >>>>http://fo=rum.webdna.us/eucabb.html?page=3Dtopics&category=3D288
>>>=;>>>>
>>> >>>
>>>-----------=----------------------------------------------
>>>>>> This message is sent to you because you are
>>>=subscribed
>>>>>>to
>>> >>> the mailing list <talk@web=dna.us>.
>>> >>> Tounsubscribe, E-mail to: <talk-leave@webdna.us>
>>> >=>> archives:http://mail.webdna.us/list/talk@webdna.us
>>> >>> ol=d archives: http://dev.webdna.us/TalkListArchive/
>>>>>> Bug Reporting:
>>> >>>http://forum.webd=na.us/eucabb.html?page=3Dtopics&category=3D288
>>>>>
>>> >> --
>>> >> Terry Wilso=n | terry@terryfic.com |
>>>http://terryfic.com
>>> >> http://WhosC=oming.com - a simplified, affordable
>>>online
>>> >>reservation system
>=>> >> http://TightJacket.com --stylish protection for your
>>> >>laptop
>>>=; >>
>>>-------------------------------------------------------------------------=-
>>> >> Attitude is the onlydifference between ordeal and
>>> >>adventure.
>&=gt;> >>
>>>----------------------------------------=-----------------
>>>>> This message is sent to you because you are
>>>subs=cribed
>>>>>to
>>> >> the mailing list <talk@webdna.us&g=t;.
>>> >> To unsubscribe,E-mail to: <talk-leave@webdna.us>
>>> >> archives=: http://mail.webdna.us/list/talk@webdna.us
>>>>> old archives: http://dev.webdna.us/TalkListArchive/
>>&=gt; >> Bug Reporting:
>>>>>http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D2=88
>>> >
>>> >
>>>---------------------------------------------------------=
>>> > This message is sent toyou because you are subscribed
>>> >to
>>> >=; the mailing list<talk@webdna.us>.
>>> > To unsubscribe, E-mail to: &=lt;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
>>>
>>>
>>
>>
>> --
>> -Dan Strong
>=> http://www.DanStrong.com
>
>---------------------------------------------------------
> 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=