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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Converting strings to dates in Integration Manager

(0) ShareShare
ReportReport
Posted on by 75,854 Moderator

I have a csv file with a datetime string. The format is MMDDYYHHMMSS. I need to extract the date and import it into the SOP date field. An example is:

10152020040828

sDateValue = SourceFields(MID("SOP Header.F10",1,2))+ "/" + SourceFields(MID("SOP Header.F10",3,2))+ "/" +SourceFields(MID("SOP Header.F10",5,4))

I keep getting invalid date format.

Categories:
  • Richard Wheeler Profile Picture
    75,854 Moderator on at

    This does not work either. All I get are blank dates

    'Now build the date from the full date string

    sDay = SourceFields(MID("SOP Header.F10",3,2))

    sMonth = SourceFields(MID("SOP Header.F10",1,2))

    sYear = SourceFields(MID("SOP Header.F10",5,4))

    sDate = sMonth + "/" + sDay + "/" + sYear

    'Set the value to return to date

    CurrentField.Value = sDate

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 510 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 302 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 197

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans