Users Pricing

forum

home / developersection / forums / how do i convert string value to a date format

How do I convert string value to a date format

Samuel Fernandes 2190 25 Jan 2014

How do I convert string value to a date format

string strDateFrom;
string strDateTo;              
CrystalDecisions.Shared.ParameterDiscreteValue DateValue = new CrystalDecisions.Shared.ParameterDiscreteValue();
if ((strDateFrom != "") && (strDateTo !=""))     
{                                      
    DateValue.Value ="(From: " + strDateFrom + " - " + strDateTo +")";
}    
else    
{
    DateValue.Value ="(ALL DATES)";   
}


1 Answers