03-01-2011 11:52 AM
Group,
I would like to set up a vi in web services that will accept a date string ("2/28/2011"). Any idea on how I can encode this string in the URL so that NIWebServices will accept it as a single input rather than 3 inputs? I have tried to use %2f in place of the forward slashes but no go. I could use three separate inputs (month,day,year) but I would like a more elegant solution. I figured out the Time portion but I am stuck on the Date. Any ideas?
Thanks
Todd
03-01-2011 02:51 PM
Group,
Just adding this for anyone with the same problem.
I changed the date format to %<%X %b %d,%Y>T. An example is:10:38:02 PM Feb 28, 2011. So to submit this as a variable from NI's web service = NIWebService, with the vi = VarTest accepting a string you would call:
http://computername.domainname.com:8080/NIWebService/VarTest/10%3a38%3a02%20AM%20Feb%2028%2c%202011
You should be able to convert this to a Timestamp.
I hope that this helps...
Thanks
Todd
03-02-2011 04:25 PM
Hello toddho
I just wanted to verify with you, have you solved your own issue? If you could please follow up with me, I'd really appreciate it. I'd be happy to help you solve this but let me know if it is still a problem to you.
Thank you!
Greg S.
03-04-2011 09:04 AM
Greg,
Yes that solved it. Thanks for your intrest.
Todd
03-07-2011 03:30 PM
Wonderful!
Thank you for choosing National Instruments!