🚀 Salesforce Flow Date Formatting: 5 Easy Ways to Format Dates as Text

When building a Salesforce Flow, you may eventually need to take a Date value and place it inside a Text field.

For example, you might want to include an Opportunity’s Close Date in its Opportunity Name. The problem is that simply inserting a Salesforce Date value into a text formula may not produce the clean, readable format you expect. 😕

That’s where Salesforce Flow Date Formatting becomes important.

By using a Salesforce Flow formula, you can transform the individual parts of a Date—month, day, and year—into text and combine them into a consistent date format.

In this tutorial, you’ll learn how to format a Salesforce Date into Text in Flow, fix an incorrectly formatted Opportunity Name, and use a simple formula that you can copy and adapt to your own Salesforce Flow. ⚡

Table of Contents

📅 Salesforce Flow

Why Salesforce Flow Date Formatting Matters

Salesforce stores Date values as dates, but sometimes you need that information to appear as part of a text string.

For example, imagine your users want Salesforce to automatically create an Opportunity Name using:

Account Name - Service Opportunity - Close Date

Example
Desired Opportunity Name
Farmers Co-op - Service Opportunity - 08/25/2026
💡 You want the Date to appear as a clean, predictable part of the final text value.
⚡ The Challenge

However, if you simply add the Date resource to your formula, the resulting value may not look the way you intended.

✨ The Solution

This is where Salesforce Flow Date Formatting becomes useful. You can convert the Date into individual text components and then combine those components into a clean and consistent text value.

Salesforce Flow Date Formatting: Incorrect Date Format Example

This shows an Opportunity Name with the Close Date displayed in an unformatted, awkward way.

🏢 Salesforce Flow Scenario

The Salesforce Flow Example

In this example, a button launches a Flow called New Service Opportunity. The Opportunity object has multiple Record Types, but users frequently need to create Service Opportunities.

The Flow makes this process faster by allowing users to quickly create a new Service Opportunity.

1
Launch the Flow
A user clicks a button to launch the New Service Opportunity Flow.
2
Create the Opportunity
The Flow helps the user quickly create a new Service Opportunity.
3
Add the Close Date
The user provides the Opportunity Close Date that should appear in the Opportunity Name.
Opportunity Name Structure
Account Name + Service Opportunity + Close Date
📅
The additional requirement:
Include the Opportunity Close Date directly in the automatically generated Opportunity Name.
💡 Here's the challenge: The goal sounds simple, but the Date needs to be formatted correctly before it can be combined with the other text values.
❌ The Problem

What Happens When You Don't Format the Date?

Initially, the Close Date is added directly to the Opportunity naming formula. The formula combines the Account Name, Service Opportunity, and Opportunity Close Date.

Value 01
Account Name
Value 02
Service Opportunity
Value 03
Opportunity Close Date
⚠️ Unexpected Result

However, the resulting Opportunity Name doesn't display the date in the desired format. This happens because Salesforce is working with the value as a Date, while the Opportunity Name is a Text field.

Close Date
Date
Opportunity Name
Text
🔄
The solution:
The Flow needs to transform the Date value into text before combining it with the rest of the Opportunity Name. This is where Salesforce Flow Date Formatting solves the problem.
🔍 Salesforce Flow

Finding the Opportunity Naming Formula in Flow

To fix the issue, open the Salesforce Flow and locate the element responsible for updating the Opportunity. In this example, the Update Opportunity element updates the Opportunity Name using a formula.

1
Open the Flow
Open the Salesforce Flow responsible for creating and updating the Service Opportunity.
2
Find Update Opportunity
Locate the element that updates the Opportunity Name.
3
Inspect the Formula
Look for the Date resource being inserted directly into the text formula.
Opportunity Name Formula
Account Name + " Service Opportunity " + Opportunity Close Date
💡
What should you look for?
The important part to identify is the Date resource being inserted into the text formula.
Date Resource Current value
Text Value What we need
Instead of simply adding the Date resource, we need to transform the Date into a text value first. This allows the formatted date to be combined cleanly with the rest of the Opportunity Name.
⚡ Salesforce Flow Formula

How Salesforce Flow Date Formatting Converts a Date Into Text

Salesforce Flow allows you to use a formula to extract individual parts of a Date and convert them into text. Instead of inserting the Date directly into your text formula, we can break it into three simple components: Month, Day, and Year.

📅
Month
MONTH()
📆
Day
DAY()
🗓️
Year
YEAR()
The Formula
TEXT ( MONTH ( {Date} )) + "/" + TEXT ( DAY ( {Date} )) + "/" + TEXT ( YEAR ( {Date} ))
Salesforce Date {Date}
Extract Parts MONTH / DAY / YEAR
Convert to Text TEXT()
Combine + "/" +
✨ Final Text Value
08/25/2026
💡 Replace {Date} with your Flow resource.
If you're formatting an Opportunity Close Date, replace {Date} with the applicable Close Date resource from your Salesforce Flow.
🧩 Formula Breakdown

Breaking Down the Salesforce Flow Date Formatting Formula

Let's look at what each part of the formula does. The Date is broken into three separate values — Month, Day, and Year — before the final text value is created.

📅
Starting Date
August 25, 2026 → {Date}
1
📅
Extract the Month
MONTH({Date})
The MONTH() function extracts the month from the Date. We then use TEXT() to convert the number into text.
August 25, 2026

8 → "8"
2
📆
Extract the Day
DAY({Date})
The DAY() function extracts the day from the Date. We then convert the number into text using TEXT().
August 25, 2026

25 → "25"
3
🗓️
Extract the Year
YEAR({Date})
The YEAR() function extracts the year from the Date. We then convert the value into text using TEXT().
August 25, 2026

2026 → "2026"
4
🔗
Add the "/" Separators
"/"
Add text separators between the three converted values to create the familiar Month / Day / Year format.
"8" + "/" + "25" + "/" + "2026"

8/25/2026
🎯 Complete Formula
TEXT(MONTH({Date})) + "/" + TEXT(DAY({Date})) + "/" + TEXT(YEAR({Date}))
Final result: A clean text representation of the original Salesforce Date.

August 25, 20268/25/2026
📅

Salesforce Date Formatter

Convert a Salesforce Date into readable text.

Formatted Result
MONTH
DAY
YEAR
⚡ Salesforce Flow Formula
TEXT(MONTH({Date})) + "/" + TEXT(DAY({Date})) + "/" + TEXT(YEAR({Date}))
🛠️ Salesforce Flow

Updating the Salesforce Flow

Once you've created the new formula, return to the Flow and update the Opportunity Name formula. Replace the original Date resource with your new formatted Date expression.

1
🔍
Find the Original Formula

Open the Flow and locate the formula that creates the Opportunity Name.

Account Name +
Service Opportunity +
Close Date
2
🔄
Replace the Date

Remove the original Date resource and replace it with the formatted Date expression you created.

Account Name +
Service Opportunity +
Formatted Date
3
Save the Flow

Save your changes and test the Flow to confirm that the Opportunity Name displays the Date in the expected format.

08/25/2026
✓ Ready
🎯 Final Opportunity Name
Farmers Co-op - Service Opportunity - 08/25/2026

The formatted Date is now part of the Opportunity Name, giving users a consistent and readable naming format.

💡
Why this matters: Formatting the Date before combining it with text helps keep automatically generated Salesforce Opportunity Names clean, predictable, and easy to read.
✅ Salesforce Flow

Activate the Updated Flow

After updating the formula, save your changes and activate the Flow. This ensures Salesforce uses the updated version when users create a new Service Opportunity.

⚠️
Don't skip activation.
If you test the Opportunity creation process without activating the updated version, Salesforce may continue using the previous version of the Flow.
1
Activate the Flow

Save your changes and activate the updated New Service Opportunity Flow.

Save → Activate
2
📂
Create an Opportunity

Open the Opportunities tab, launch the New Service Opportunity Flow, and enter the required information.

Click Next →
3
🎯
Verify the Result

Open the newly created Opportunity and review the Opportunity Name.

Check Close Date
🔎 Testing Checklist
  • Open the Opportunities tab.
  • Start the New Service Opportunity Flow.
  • Enter the required information.
  • Click Next.
  • Open the newly created Opportunity.
  • Review the Opportunity Name.
🎯 Final check: Confirm that the Close Date appears in the expected format, such as 08/25/2026.
🎉 Salesforce Flow Result

Review the New Formatted Opportunity Date

After the updated Flow runs successfully, the Opportunity Name should now display the Close Date as a clean text value.

❌ Before Formatting
Account Name + Service Opportunity + Date

The Date is being added directly to the text formula, which can result in an unexpected or difficult-to-read representation.

✅ After Formatting
Account Name + Service Opportunity + 08/25/2026

The Date has been converted into text and can now be combined cleanly with the rest of the Opportunity Name.

🎯 Final Opportunity Name
Farmers Co-op - Service Opportunity - 08/25/2026

The Close Date now appears in a consistent, readable format, making the Opportunity easier for users to identify.

👀
Easier to Read
Users can quickly recognize the Opportunity and its date.
📋
Consistent
Records created through the Flow follow the same naming format.
Cleaner Data
The formatted Date becomes a predictable part of the text.
💡 Salesforce Flow

Why Convert a Salesforce Date Into Text?

You might wonder why you would need to convert a Date into Text in the first place. The answer is simple: sometimes you need a Date value to become part of a larger text string.

🏷️

Creating Record Names

Include a Date in an automatically generated record name.
You may want to include a Date in an automatically generated record name. Service Opportunity - 08/25/2026
📄

Creating Text Summaries

Combine a Date with other Salesforce information.
You may need to combine a Date with other information inside a Text field. Project: Website Migration | Due: 08/25/2026
🔄

Migration & Integration Values

Represent a Date as part of a text value.
Some integrations or migration processes may require a Date to be represented as part of a text value. Migration Record - 08/25/2026
📊

Formatted Descriptions

Build readable descriptions from multiple values.
A Flow can combine multiple Salesforce values into a readable description. Service: Plumbing | Scheduled: 08/25/2026
⚙️

Automated Naming Conventions

Use Dates to automatically identify records.
Dates can help automatically identify records based on when an event, project, service, or opportunity is expected to occur. Service Opportunity - August 2026
💡 Think of it this way: A Salesforce Date is useful as a Date field, but when you need that value to become part of a larger sentence, description, or naming convention, you may need to convert it into Text first.
⚡ Interactive Formula

Salesforce Flow Date Formatting Formula

Here's the formula from the tutorial. Click any part of the formula below to see what it does.

TEXT(MONTH({Date})) + "/" + TEXT(DAY({Date})) + "/" + TEXT(YEAR({Date}))
Click a formula part

Select any highlighted section above to learn what that part of the formula does.

📌 Your Date Resource

Replace {Date} with the applicable Date resource from your Salesforce Flow. In this tutorial, that resource is the Opportunity Close Date.

💡 Example result: If the Close Date is August 25, 2026, the formula produces 8/25/2026 as a text value.
⚡ Salesforce Flow Formula

Build Your Date Formatting Formula

Instead of inserting a Salesforce Date directly into a text formula, you can break it into its Month, Day, and Year components and convert each component into text.

Enter the Date resource from your Flow.
🧩 Generated Formula
Your Date resource is inserted automatically.
TEXT(MONTH(CloseDate)) + "/" + TEXT(DAY(CloseDate)) + "/" + TEXT(YEAR(CloseDate))
✓ Formula copied!
💡 Example: If your Date resource is CloseDate, the formula creates a readable text value such as: 08/25/2026
📌 Remember: Replace the Date resource with the applicable Date resource from your Salesforce Flow. The formula structure remains: MONTH → DAY → YEAR → TEXT

🎯 Final Thoughts

Salesforce Flow Date Formatting is a simple but useful technique when you need to include a Salesforce Date inside a text value.

Instead of inserting a Date directly into a text formula, you can use MONTH(), DAY(), YEAR(), and TEXT() to transform the individual Date components into text.

The result is a cleaner and more predictable value that can be used in Opportunity Names, descriptions, naming conventions, and other automated Salesforce processes.

TEXT(MONTH({Date})) + "/" + TEXT(DAY({Date})) + "/" + TEXT(YEAR({Date}))
💡 Flow Tip

Save this formula somewhere handy if you regularly build Salesforce Flows. Replace {Date} with the applicable Date resource whenever you need to convert a Salesforce Date into a readable text value.

🧩 Quick Flow Check
Which functions are used to break a Date into its components?

❓ Frequently Asked Questions About Salesforce Flow Date Formatting

Find quick answers to common questions about formatting Salesforce Date values, using Flow formulas, and adding formatted dates to text values.

Salesforce Flow Date Formatting is the process of converting a Salesforce Date value into a specific text format using Flow formulas.

This is useful when a Date needs to be included in a Text field or combined with other text values.
You can use the following formula:
TEXT(MONTH({Date})) + "/" + TEXT(DAY({Date})) + "/" + TEXT(YEAR({Date}))
Replace {Date} with the applicable Date resource from your Flow.
A Salesforce Date and a Text value are different data types.

When you need to combine a Date with other text, you may need to explicitly convert the Date components into text so Salesforce can use them within the larger text formula.
Create or update a Flow formula that combines the Account Name, your desired naming text, and a formatted version of the Opportunity Close Date.
Account Name + " - Service Opportunity - " + TEXT(MONTH({Date})) + "/" + TEXT(DAY({Date})) + "/" + TEXT(YEAR({Date}))
Replace {Date} with the Opportunity Close Date resource in your Flow.
The MONTH() function extracts the month number from a Salesforce Date value.

For example, a date in August returns:
August → 8
You can then use TEXT() to convert that number into a text value.
The DAY() function extracts the day number from a Salesforce Date.

For example:
August 25 → 25
The YEAR() function extracts the four-digit year from a Salesforce Date.

For example:
August 25, 2026 → 2026
Yes. You can use the same formula with other Salesforce Date resources.

Simply replace {Date} with the applicable Date field or Flow resource.
Yes. You can change the separators and order of the Date components.

For example, you could structure the formula differently depending on whether you want:
08/25/2026 08-25-2026 2026/08/25
💡 Remember: The important part is understanding how to extract and convert the individual Date components.
You can copy the formula from this article or from the description of the accompanying YouTube tutorial.
TEXT(MONTH({Date})) + "/" + TEXT(DAY({Date})) + "/" + TEXT(YEAR({Date}))
Remember to replace {Date} with the applicable resource in your Salesforce Flow.
⚡ Continue Learning

Ready to Master Salesforce Flow?

Want to learn more about Salesforce Flow, formulas, data automation, and real-world Salesforce workflows? Explore more practical Salesforce training with Salesforce Masterclass.

🎮 Salesforce Flow Challenge

Do You Know When to Convert a Date Into Text?

Test your understanding of Salesforce Date formatting and see when converting a Date into Text can make your Flow more useful.

Question 1 of 5 Score: 0
Flow Knowledge Check

Why might you convert a Salesforce Date into Text?

🎉

Challenge Complete!

One Response

Leave a Reply

Discover more from SMC Migrations

Subscribe now to keep reading and get access to the full archive.

Continue reading