Faster Snippets: Date and Time Formats

Modified on Mon, 15 May 2023 at 05:26 PM

When using Dates with Faster Snippets, you have fine-grained control over how the date will be displayed.  To control how a date is displayed, you will edit the tag to include a :SPECIFIER at the end. For example, if you wanted to customize how a matter's Created Date was shown, you would use the following:

{Matter_Created_At:SPECIFIER}

All specifiers are case-sensitive so make sure you type them accordingly.


Single Specifiers

Single Specifiers are designed to be used by themselves and cannot be combined with other separators.  For example, you might do the following:

{Matter_Created_At:D}

to generate the following text;
Matter_Created_At:d}

Below is a list of all Single Specifiers:
Single Specifier
Example
Description
d
08/01/2018
Monday, Day, Year
D
Wednesday, 01 August 2018

m
August 01

t
12:03
Time
y
2018 August

Combo Specifiers

Combo Specifiers can be used by themselves but they are designed to give you fine-grained control over the different parts of a date.  For example, you might do the following:

{Matter_Created_At:MMMM %d "at" %h:mm tt}

to generate the following text:
August 1 at 2:04 PM

Below is a list of all Combo Specifiers:
Combo Specifier
Example
Description
Year Specifiers


yyyy
2018




Month Specifiers


%M
8
Month: 1-12
MM
08
Month: 01-12
MMM
Aug
Three-Character Month
MMMM
August
Full Month Name



Day Specifiers


%d
1
Day: 1-31
dd
01
Day: 01-31
ddd
Wed
Three-Character Day
dddd
Wednesday
Full Day Name



Hour Specifiers


%h
2
Hour:1-12
hh
02
Hour:01-12
%H
14
Hour:0-23 (24-hour time)
HH
14
Hour:00-23 (24-hour time)



Minute Info


%m
4
Minute:0-59
mm
04
Minute:00-59



Second Info


%s
2
Second:0-59
ss
02
Second:00-59



Time of Day


tt
AM
AM/PM



Other


"Literal Text"
Literal Text
Insert the text between the quotations literally.
:
:
The time separator
/
/
The date separator

Demo Snippet

The following demo snippet will show you the most popular specifiers and their output.

/*
Let's say you have the date: {Matter_Created_At}
You can format it as follows:

Quick Formats---
d: {Matter_Created_At:d}
D: {Matter_Created_At:D}
f: {Matter_Created_At:f}
g: {Matter_Created_At:g}
m: {Matter_Created_At:m}
t: {Matter_Created_At:t}
y: {Matter_Created_At:y}

The following shows different "Parts" of a date you can use to build a custom format.
For example:
"on" MMMM %d "at" %h:mm tt
yields:
{Matter_Created_at:"on" MMMM %d "at" %h:mm tt}

Year Info----
Four Digits: yyyy: {Matter_Created_At:yyyy}

Month Info----
1-12: %M: {Matter_Created_At:%M}
01-12: MM: {Matter_Created_At:MM}
Three Letter Abbreviation: MMM: {Matter_Created_At:MMM}
Full Month Name: MMMM: {Matter_Created_At:MMMM}

Day Info----
1-31: %d: {Matter_Created_At:%d}
01-31: dd: {Matter_Created_At:dd}
Three Letter Abbreviation: ddd: {Matter_Created_At:ddd}
Full Day Name: dddd: {Matter_Created_At:dddd}

Hour Info---
1-12: %h: {Matter_Created_At:%h}
01-12: hh: {Matter_Created_At:hh}
0-23: %H: {Matter_Created_At:%H}
00-23: HH: {Matter_Created_At:HH}

Minute Info---
0-59: %m: {Matter_Created_At:%m}
00-59: mm: {Matter_Created_At:mm}

Second Info---
0-59: %s: {Matter_Created_At:%s}
00-59: ss: {Matter_Created_At:ss}

AM/PM Designation---
AM/PM: tt: {Matter_Created_At:tt}
*/

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article