This can help.
Let's say InstallDate0 = 151116 (just replace InstallDate0 with whatever your name is!)
I want to convert the following 151116 => 11/16/2015
yyMMdd type strings
to
MM / dd / yyyy type dates
Expression: =format(CDate(Mid(Fields!InstallDate0.Value,3,2)&"/"&Right(Fields!InstallDate0.Value,2)&"/"&Left(Fields!InstallDate0.Value+20000000,4)),"MM/dd/yyyy")
if you want to do the same except from 20151116 => 11/16/2015
yyyy MMdd string type
to
MM / dd / yyyy type dates
the expression will be: =format(CDate(Mid(Fields!InstallDate0.Value,5,2)&"/"&Right(Fields!InstallDate0.Value,2)&"/"&Left(Fields!InstallDate0.Value,4)),"MM/dd/yyyy")
Tags: how to convert string to date with expression for SQL Server Report Builder
source share