web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Business central - date formatting in CSV

(2) ShareShare
ReportReport
Posted on by 20
Hi Team, 
I need to export few fields in payment journals into csv file. document date is getting exported as  11/6/2025 but we need 11/06/2025. 
Can you please suggest the ways i can export date as expected.
 
 
 
Thanks!
 
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    299,881 Super User 2025 Season 2 on at
    Business central
    Moved the question from the Dynamics 365 General to the Dynamics 365 Business Central forum.
    I also updated the title to let volunteers know the contents of the question. Just "Business Central" is too generic.
  • Suggested answer
    Jainam M. Kothari Profile Picture
    13,127 Super User 2025 Season 2 on at
    Business central - date formatting in CSV
    Hello,
     
    To export the Document Date from Payment Journals in the DD/MM/YYYY format (e.g., 11/06/2025) in Business Central, you can format the date using AL code in a custom report or XMLport with FORMAT("Document Date", 0, '<Day,2>/<Month,2>/<Year,4>').
     
    If you're exporting to Excel, apply a custom date format (dd/mm/yyyy) in Excel itself. For data exchange or page extensions, ensure the date is formatted before writing to the CSV.
  • Suggested answer
    Sumit Singh Profile Picture
    8,794 on at
    Business central - date formatting in CSV
     
    CSV is plain text, so as far as I know you might output the date as text already formatted as dd/mm/yyyy before saving in CSV.

    Workaround: Convert Date to Text Before Saving CSV (No Customisation-And as per my knowledge and trial)
    Here’s a step-by-step workaround that ensures the date is exported as dd/mm/yyyy with leading zeros:
    Step 1: Use a formula to convert date to text
    In a new column (e.g., Formatted Date), enter:
    =TEXT(A2, "dd/mm/yyyy")
    • Replace A2 with the cell containing your original date.
    • This will show 11/06/2025 instead of 11/6/2025.
    Step 2: Copy and Paste as Values
    1. Select the entire Formatted Date column.
    2. Right-click → Copy.
    3. Right-click again → Paste Special → Values.
      • This replaces formulas with actual text values.
    Step 3: Delete the original date column (optional)
    This ensures only the correctly formatted date is exported.
    Step 4: Save as CSV
    Go to File → Save As → CSV (UTF-8).
    Now the date will appear as 11/06/2025 in the CSV file, not 11/6/2025.
     
  • Suggested answer
    Valentin Castravet Profile Picture
    30,393 Super User 2025 Season 2 on at
    Business central - date formatting in CSV
    Can you provide more information, how are you exporting to a CSV file? Did you create a custom export or are you using data exchange definitions?
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sumit Singh Profile Picture

Sumit Singh 2,179

#2
OussamaSabbouh Profile Picture

OussamaSabbouh 1,999

#3
YUN ZHU Profile Picture

YUN ZHU 1,892 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans