@ 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/37a7b1cb-bb21-4878-90e2-392a2f34521bn%40googlegroups.com.