Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

pass datetime string in the url

$
0
0

Hello :

I am trying to pass, date time string in a url, but I am getting the 400: bad request error.

string dte = (EffectiveDate.Replace('/', '-'));

// DateTime.Parse(EffectiveDate).ToString("s");

http://localhost:59887/Customer/Program/CustomerNumber/2059656/EffectiveDate/2014-02-01%2000%3A01%3A00/UserName/username/Culture/en-US

Effective date in this format is giving me issues, I tried EffectiveDate/2014-02-01T00:01:00 but still not helping. 

Please kindly give some suggestions on what format to use that would work in the url.

Thank you,

Sushma 

 


Viewing all articles
Browse latest Browse all 4850


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