I did not get the point! I explain the case in more clear manner to see how I can use from your comment
1. I am developing a timelines plugin 2. The timelines plugin uses a field called date to create a horizontal or vertical flow of events 3. The date field should have year, month and day of event 4. The user will fill out the data field for example historical events of world wars two My problem here is user should have flexibility to fill out the date field! If I understand you advise to use a datepicker not manually fill out them! --Mohammad On Friday, August 2, 2019 at 10:46:26 AM UTC+4:30, TonyM wrote: > > 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/7f97619c-2e94-4f55-bc2a-92f69bd6e4df%40googlegroups.com.

