Events setup to happen at a certain time and date

Please specify version and format if asking for help, or apply optional tags above:
Twine Version: 2
Story Format: Sugarcube

I’m wondering if anyone can figure out how to create a one time event. I’m using the time widget for 24 hours…I would like the even to occur Jul 3rd, 2019

`<<if $gameDate.getMonth() is “Jul” and $gameDate.getDate() is “3” 
and   $gameDate.getFullYear() is “2019”>> 
<<dialog ‘’>>You got it to work!<</dialog>><</if>>`

All of the methods you’re attempting to use return numbers rather than strings (see: Date > Instance methods @MDN), so no quoting the values here. Try something like the following: (indented for clarity)

<<if
	$gameDate.getMonth() is 6
	and $gameDate.getDate() is 3
	and $gameDate.getFullYear() is 2019
>>
	<<dialog>>You got it to work!<</dialog>>
<</if>>

WARNING: In both places you posted this, you seem to be using typographic/curly quotes, which are not valid syntax—i.e., you need to use normal double/single quotes, not the curly ones. If that’s the result of the site software changing your regular quotes into curly ones, then you can disregard this warning.