Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I preserve date formats in CURSORTOXML
Message
 
To
29/12/2005 16:25:07
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01081853
Message ID:
01081896
Views:
12
>I have a cursor that contains a date field. When I browse it, a date value appears as 30/05/1970. After calling CURSORTOXML("csrMyData", "c:\MyData.xml",2,0+2+512,0,"1") the same date value appears as 1970-05-30.
>
>Why has it changed the date format? What controls the date format for this function?
>
>TIA

Mike,

The latter date format is exported to comply with date type in xmlns:xsd="http://www.w3.org/2001/XMLSchema"

Why do you want to change it?

If you change it to 30/05/1970, xmltocursor is not able to import the date.
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform