+ Reply to Thread
Results 1 to 3 of 3

Thread: Converting dates into xml file

  1. #1
    Registered User
    Join Date
    01-14-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Converting dates into xml file

    Hi

    I have a problem which I need help for. I have a macro (but I did not write it) which converts some data in a spreadsheet into and xml file. Amongst the data is some dates. On my machine and some other colleagues, when we inspect the xml file generated the date appears yyyy-mm-dd (even if the day of the month is single digit)

    Now another colleague gets the same file (because it is stored on a LAN drive) but on his machine runs the same macro and when we inspect the xml file generated, where the day of the month is single digit the date appears as yyyy-mm-d, dropping off the 0.

    We are both running the same version of excel and using the same file and macro which is a module within the workbook. Does anyone have any idea what may be causing this?

    Thanks for looking/helping!

    The Dang
    Last edited by the dang; 01-14-2009 at 03:45 AM. Reason: "(even if the day of the month is single digit) "

  2. #2
    Forum Guru Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    Please post the macro code you are currently using. Possibly it has something to do with the default date format being used on your systems but it is very difficult to help further without seeing the code.

    Richard
    Richard Schollar
    Microsoft MVP - Excel

  3. #3
    Registered User
    Join Date
    01-14-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2
    Hi Richard,

    I might hold off on posting the code because it is very long and also your suspicion of the system date may be right as I changed their system date format from d/MM/yyyy to dd/MM/yyyy which is what mine was set to.

    Thanks for your help so far!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0