IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Date format Options · View
pinky
Posted: Monday, November 16, 2009 6:29:27 PM
Rank: Newbie

Joined: 11/16/2009
Posts: 1
I am new to the XML stylesheets and I need some assistance getting a date formatted. I am trying to convert a date that comes across as this: 2008-01-15T00:00:00Z

If anyone has some specific instructions on getting this just to show that date, preferably in m/d/yyyy format, if not, then just the date would be wonderful. Thanks so much!
vlad
Posted: Monday, November 16, 2009 9:02:11 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
First, you need to clarify whether you are working on your stylesheets with StyleVision (because you've posted your question in StyleVision forum) or writing your stylesheets by hand. The solution depends on your answer.
doedea
Posted: Friday, February 19, 2010 10:01:26 PM
Rank: Newbie

Joined: 2/19/2010
Posts: 1
Location: Minneapolis
I am having the same problem formatting dates and dateTimes in StyleVision. I don't want to have to manually edit the XSLT. I start with a date in this format:

2009-11-23T13:04:25.300-06:00

Please advise.
vlad
Posted: Friday, February 19, 2010 11:52:41 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
In StyleVision everything is easy - you need to use Input Formatting feature documented here.

I'd also suggest to look at the "input formatting.sps" sample file delivered with StyleVision.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.