Punctuation in Time (a.m. v. am)

Hi all!

I have a speific need to punctuate time (a.m. v. am -and- p.m. v. pm) in legal documents. I cannot find a way to do this and was wondering if a TB Guru out there had sme helpful insight.

Thanks in advance!

JM

Hi @vendor,

You can use {time: hh:mm a} and then replace “am” and “pm” with “a.m.” and “p.m.” using the replace function. Here’s an example snippet:

{formatted_time=replace(replace({time: hh:mm a}, "am", "a.m."), "pm", "p.m.")}
{=formatted_time}

Please let me know if you have any further questions.

Thank you for the quick response - and I appologize in advance for my limited undersatanding of TB. I really do appreciate your help.

While I "see" how this works, I have great difficulty wrapping my head around how to write these snippets. TB just seems to be less intuitive (to me at least) than I need...

For example, while I can "see" this code, I cannot seem to replicate building the code to something that works as a form fill-in block. I look at TB and I see

{formatted_time=replace(replace({time: hh:mm a}, "am", "a.m."), "pm", "p.m.")} {=formatted_time}

If I attempt to tweak it, it fouls up and I get a useless string. Where can I find the information on "how" to build the snippets. The online resources seem to be lacking (or I am complete.y missing the point).

Thanks!

JM

Thank you for sharing your thoughts, @vendor! I completely understand how working with snippets can feel overwhelming at first.

To help you get started, I recommend checking out our quick start guide: Quick Start Guide. It provides a step-by-step introduction to building and using snippets effectively.

Additionally, the AI-Write feature can assist you in generating text and formulas, making the snippet creation process more intuitive. You can learn more about it here: AI-Write Overview.

If you’d like more personalised guidance, we’d be happy to schedule a quick demo to walk you through the process. Please let us know if that interests you!

Our community forums are also a great resource for getting help and inspiration from other users. Feel free to explore and ask questions there.

For specific formulas, this video might also be useful: Video Guide.

Let us know how else we can assist you!