i have a full datetime object that i need to pass in as a parameter in a URL.
what is the best way to do this so it fully can get converted to a csharp DateTime object and not lose any precision ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
pass it as a
Ticks. and convert theTicksback to DateTime.Ticksis a long datatype and datetime acceptslongdatatype to be converted toDateTimeFor example, in mvc, your url looks like this
myweb.com/Pass/Date/634164331846947633you can get the 3rd segment of your url which is by defaultidand convert it toDateTime.