May 2004 - Posts

Free MapPoint Web Service Access for 1 Year
Friday, May 14, 2004 2:53 PM

MapPoint Web ServiceThe MapPoint web service is offering a free 1 year subscription to MSDN subscribers.

This is pretty handy.  You are probably familiar with the MapPoint service on MSN at http://www.mappoint.com (which is very cool, by the way.  Check out the LineDrive functionality of the directions system).  What you may or may not know is that http://www.mappoint.com is actually a demonstration application of the MapPoint Web Service

If you are handy with web services you can use the MapPoint Web Service to design applications that run on your PocketPC or SmartPhone, or within you application that return map information such as points of interest near a location, the driving distance between to points, and it will even return images of the maps rendered for whatever purpose you want (including mobile images and high-res images for printing).

I have always been curious about this and this just may be the tipping point. 

by wkriebel | with no comments
Filed under:
Format a Date for InfoPath 2003
Wednesday, May 05, 2004 12:52 PM

If you ever need to generate a date that is compliant with InfoPath 2003's date format (ISO 8601), here is the handy little function that appears throughout the InfoPath SDK code:

function GetDateString(oDate) {
     // Use today as default value.
     if (oDate == null) 
          oDate = new Date(); 
     var m = oDate.getMonth() + 1; 
     var d = oDate.getDate(); 
     if (m < 10) 
          m = "0" + m; 
     if (d < 10) 
          d = "0" + d; 
     // ISO 8601 date (YYYY-MM-DD). 
     return oDate.getFullYear() + "-" + m + "-" + d;
}

by wkriebel | with no comments
More Posts