I have some frontmatter that lists some datetime stuff for events, like this:
...
eventdate: 2023-05-01
...
I’ve been turning this string into a datetime object with time function so I can specify .Format on it.
However, in my templates I’m wondering if there’s a simple way to test for the existence of a time portion of the eventdate string? If there’s no ...T18:00:00 hanging out after that string I’d like to skip including the time if possible in my template. Any ideas?
Dood. I think you’ve almost single-handedly answered every darn question I’ve ever had and I just want to thank you (I learn a ton reading your responses).