Well, this works with some caveats

<$set name="timestamp" value=<<now YYYY0MM0DD000000000>>>

<<timestamp>>

<$reveal type='lt' state='!!gsd_duedate' text=<<timestamp>> >
HI there
</$reveal>
</$set>

If there is any possibility that gsd_duedate will be empty, then you 
probably want to add extra checking for that. Actually I would probably 
scrap <reveal> and use <$list> since there are now comparison operators for 
filters. But I digress.

Also, by resetting the hours and minutes to all zeroes, you have 
effectively moved your timestamp BACK in time. This may make your reveal 
not trigger until X number of hours, where X depends on how close you are 
to the international date line.



On Tuesday, September 22, 2020 at 4:46:26 PM UTC-7, Simon wrote:
>
> Once again after hours of hacking I find myself turning to this board for 
> some help
>
> Background: I only want to show some particular data if the date in a 
> field is BEFORE now
>
> I have set a time stamp
> <$set name="timestamp" value="<<now YYYY0MM0DD000000000>>">
>
> This works fine, it's how to include that in the reveal
> Here is what I have
> <$reveal type='lt' state='!!gsd_duedate' text='<<timestamp>>' >
>
> I have tried single angle brackets: <timestamp>, double angle 
> <<timestamp>>, {{!!timestamp} and {!!timestamp} - all to no avail
>
> I am clearly missing the syntax here. I know the field is set as I am able 
> to display it using <<timestamp>> and if I hardcode the timestamp e.g. 
> 20200922000000000 it works
>
> Any help is gratefully appreciated
>
> Thanks
> Simon
>
>

-- 
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/67cfa32d-8237-4678-8289-04e46e9545cao%40googlegroups.com.

Reply via email to