Answered my own Question

Dates with hyphens YYYY-0MM-0DD can be treated as valid dates so if 
maintained in this format no conversion is necessary.

I was using a YYYY/0MM/0DD format so I could use the Tree macro, but 
instead I made a new macro called a hyphentree, now I am working on another 
called a date tree to provide a clickable tree of all date named tiddlers.

Regards
Tony

On Tuesday, November 28, 2017 at 10:27:09 AM UTC+11, TonyM wrote:
>
> Mark et al,,
>
> On the subject of dates is their a method to transform a date in the form 
> YYYY0MM0DD or similar into date serial number? 
> '
>
> Actually I have tiddlers with the tittle YYYY/0MM/0DD I would like to 
> convert to date serial numbers as well.
>
> Thanks in advance
> Tony
>
> On Tuesday, November 28, 2017 at 9:23:14 AM UTC+11, Mark S. wrote:
>>
>> This date thing is always confusing. Won't using !!created rather than 
>> <$view...> result in a date that will be off by some number of hours from 
>> UTC? People at ground zero UTC won't notice, but people further away will.
>>
>> On another note, has anyone noticed that there might  be a problem with 
>> sameday in 5.1.15?
>>
>> This code:
>>
>> <<list-links "[sameday[20171127]]">>
>>
>> works in 5.1.14 but not in 5.1.15. To make it work, you have to add an 
>> hour field:
>>
>> <<list-links "[sameday[2017112726]]">>
>>
>> Notice that this works despite the nonsensical Hour 26.
>>
>> I looked through the release notes, but didn't see anything relating to 
>> sameday.
>>
>> -- Mark
>>
>> On Monday, November 27, 2017 at 1:10:13 PM UTC-8, Eric Shulman wrote:
>>>
>>> On Monday, November 27, 2017 at 12:45:51 PM UTC-8, Stefan Spycher wrote:
>>>>
>>>> so, the thing i found is <$list filter=[sameday[20171127]]></$list>
>>>> but what i'm having a hard time figuring out is how i can substitude 
>>>> the hardcoded date to the 'created' date of the current tiddler (which is 
>>>> the daily journal tiddler, so it's create date is exactly what i could use)
>>>> long story short, how to use the <currentTiddler> created date in the 
>>>> correct format (YYYYMMDD) as date for the sameday operator?
>>>>
>>>
>>> You can use any valid date **field reference** (i.e., {!!created} or 
>>> {!!modified}) as the parameter value.  You can also specify an operator 
>>> *suffix* to indicate which field to compare with.
>>>
>>> Note that, as per the documentation for the sameday filter: "D may 
>>> include a time of day, but this is ignored."
>>>
>>> Thus, for your use-case:
>>> <$list filter="[sameday:created{!!created}] 
>>> [sameday:modified{!!created}]">
>>> <li><$link><$text text=<<currentTiddler>>/></$link></li>
>>> </$list> 
>>>
>>> Note the use of two concatenated filter expressions to select tiddler by 
>>> "created" OR "modified" field value matching the current tiddlers "created" 
>>> date.
>>>
>>> enjoy,
>>> -e
>>> Eric Shulman
>>> TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
>>> InsideTiddlyWiki: The Missing Manuals
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f7c3372b-6631-4a37-b45d-c61eb58fc119%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to