Quantcast
Channel: SharePoint 2013 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 26374

Calculated column showing string;# in front of data

$
0
0

In trying to change the way a date column is displayed in a list, I've created a calculated field and used the following formula:

=TEXT([Start1], "DDD MMM DD YYYY, HH:MM AM/PM")

The field shows properly in the list view, but when I pull the data using the following C# code:

try{           searchin.InnerHtml += "<td>" + item1["Start1"].ToString() +"</td>";
                   }catch{
                    searchin.InnerHtml += "<td>&nbsp;</td>";
                   }

I am seeing the following displayed:

string;#Mon Jan 16 2017 08:00 AM

Is there a way that I can get rid of the string;# ?


Viewing all articles
Browse latest Browse all 26374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>