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 :
Microsoft Dynamics CRM (Archived)

Can I change the this format 0117(mmyyy) to convert to mm/dd/yyyy format for crm reports.

(0) ShareShare
ReportReport
Posted on by 894

Can I change the this format 0117(mmyyy) to convert to mm/dd/yyyy format for crm reports.

I have working code in below for custom code.

Dim dt As String = "0112"
Dim dt As New Date(("20" + Microsoft.VisualBasic.Right(_date, 2)), Microsoft.VisualBasic.Left(_date, 2), 1)
here 20 is by default 20 + yy =20yy something.

Output here :- 1/1/2012 working fine.

is it possible in expression in crm reports ?

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Somesh2207 Profile Picture
    1,563 on at

    Hi,

    You should be able to use similar expression in SSRS report. I guess you can leverage String expressions to achieve this:

    The Right, Len, Left, and InStr, Join functions can be used in string expression to achieve this.

    Below links will be useful:

    http://sql-bi-dev.blogspot.in/2010/09/ssrs-expressions.html

    http://www.venkateswarlu.co.in/msbi/ssrs/SSRS_Common_Functions__Text.aspx

    https://docs.microsoft.com/en-us/sql/reporting-services/report-design/expression-examples-report-builder-and-ssrs

  • Verified answer
    Inogic Profile Picture
    748 on at

    Please use below expression in order to achieve above said requirement in CRM report.

    =Format(CDate("20" & Right("0112",2)& "/" &Left("0112",2)&"/" & "01"),"MM/dd/yyyy")

    Note "0112", this is the Field or Parameter value in the above expression as per your requirement.

     

    Thanks!

  • CRM Develope Profile Picture
    894 on at

    Thanks for the suggestion Inogic & Somesh Siripuram

  • CRM Develope Profile Picture
    894 on at

    It's Working Fine...

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans