Mohammad,

My suggestion is still valid the way you are using it. When it comes to 
date and time handling it is best to go back to the the most complete 
standard, one which caters for leading zeros, validation, international 
time zones and formatting via the tools built into tiddlywiki. Sure if the 
user only gives the yyyy mm dd save that ass yyyymmdd because it is still 
valid as the trailing zeros are assumed, but what time of day is a new 
day?, at 00:00am?

Have you looked at the pickaday plugin and other interactive date plugins?

Regards
Tony



On Friday, August 2, 2019 at 4:01:18 PM UTC+10, Mohammad wrote:
>
> Tony!
>  I am developing a timelines plugin and it uses a field to keep date and 
> it is not the modified/created system field!
> So I want user has the flexibility to enter date as 2019-03-01 or 20190301.
>
> --Mohammad
>
> On Friday, August 2, 2019 at 2:45:13 AM UTC+4:30, TonyM wrote:
>>
>> Mohammad,
>>
>> With respect why?, I would keep the dates in system format and produce 
>> the output in the required format.
>>
>> My Journal tiddlers put the date in a journal-date field for this very 
>> reason.
>>
>> An approach, would be to use the new split operator on "-" then the set 
>> widgets select keyword to extract YYYY MM and DD values.
>>
>> Regards
>> Tony
>>
>>
>> On Friday, August 2, 2019 at 2:28:56 AM UTC+10, Mohammad wrote:
>>>
>>> In tiddlywiki.com create a tiddler with a filed called yd
>>>
>>> in the yd filed enter the below value
>>>
>>> 20190801
>>>
>>> and in the text filed enter the below script
>>>
>>> <$view field="yd" format="date" template="mmm 0DD, YYYY" />
>>>
>>> It will show the below result
>>>
>>> Aug 01, 2019
>>>
>>>
>>> *Question*
>>>
>>> My question is how one can enter *2019-08-01* and get the same result?
>>> Seems *$view* only work with a raw format of date.
>>>
>>> I know there is a good macro developed by S.S to work with dates but I 
>>> need a little simpler mechanism or a way to use the core feature!
>>>
>>> --Mohammad
>>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b3eececa-7c1f-4829-b57a-347a9b6aea2c%40googlegroups.com.

Reply via email to