Hi
I am using XSLT 1.0 and i don't think datetime algorithms are part of 1.0 version. I think they are avaialble in version 2.0
Is there any way to do the same in 1.0
Thanks
Main Topics
Browse All TopicsHi,
I need to generate an excel file where the format of the cell should be type date.
When i generate the excel file, format on the cell is "General" and is of type String.
How do i get the cell format as Date.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Just create the cell's <Data> element's ss:DateTime attribute. It is important to note that how the date is formatted depends on the <Cell> elements ss:StyleID. So the following:
<Cell ss:StyleID="s21"><Data ss:Type="DateTime">2009-01-
uses ss:StyleID value "s21", which is defined in the preceding <Styles> element:
<Styles>
<Style ss:ID="s21">
<NumberFormat ss:Format="mm/dd/yy;@"/>
</Style>
</Styles>
So add the above to the worksheet's <Styles> element to format how you want the date to appear. For instance, ss:Format="mm/dd/yy;@" renders the date format as "1/6/09". ss:Format="[ENG][$-409]d\-
HTH,
kmartin7
Business Accounts
Answer for Membership
by: ritetekPosted on 2009-02-27 at 16:09:06ID: 23760819
How are you outputting to excel? Is it a csv? Have you tried using the xs:date function? http://www.xsltfunctions.c om/xsl/fn_ datetime.h tml