Format T.MMMM JJJJ ?
Surely you mean "0DD. MMM YYYY"
In this case you would parse this date to extract the DD, MMM and YYYY as
separate values, convert from MMM to a month number with a 12 month table,
then re-assemble them into a tiddlywiki date/time string. I suggest 1200 or
12 noon as the time, otherwise zero fill seconds and milliseconds.
eg D all before ".",
Month split[ ]nth[2]
Year split[ ]nth[3] or last[]
Regrds
Tones
On Monday, 16 August 2021 at 09:47:47 UTC+10 Mark S. wrote:
> @ Eric
>
> Just tried
>
> <<convertdate from:"7. April 2021" to:"[UTC]YYYY0MM0DD0hh0mm0ss0XXX">>
>
> and got a hard RSOE ("from" not defined). I think the arguments need to be
> tweaked in the macro.
>
> HTH
> On Friday, August 13, 2021 at 2:53:09 PM UTC-7 Eric Shulman wrote:
>
>> On Friday, August 13, 2021 at 12:36:11 AM UTC-7 S² wrote:
>>
>>> I use a created text field 'published', which will be filled with a date.
>>> (This date can also be in the future)
>>> format is *T. MMMM JJJJ* - (eg. *7. April 2021* or *13. August 2021*).
>>>
>>> 1. How can this be converted into a date format?
>>>
>>
>> I have just added a new javascript macro to the TiddlyTools timer package.
>>
>> https://tiddlytools.com/timer.html#TiddlyTools%2FTime%2FConvertDate
>>
>> - To convert a date to a different format, use <<convertdate
>> from:inputdate to:outputformat>>.
>> - The input date can use any date format recognized by the Javascript
>> Date.parse() function. Generally this conforms to *ISO 8601 standard
>> date format*. <https://en.wikipedia.org/wiki/ISO_8601>
>> - The output format uses TiddlyWiki Date Format codes
>> <https://tiddlywiki.com/#DateFormat>, and defaults to
>> *[UTC]YYYY0MM0DD0hh0mm0ss0XXX*.
>>
>> enjoy,
>> -e
>>
>
--
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/cc381b92-116b-4665-bd16-9ebe4decf23cn%40googlegroups.com.