get date from week number
Issues related to W3C XQuery.
-
- Posts: 6
- Joined: Tue Feb 07, 2012 12:59 pm
get date from week number
Post by SteffenWeitsch »
Hello,
is there any possibility to get first and last day of a week number in XQuery ?
As input I have date formatted CCYYWW and want to get CCYYMMDD - CCYYMMDD
I also thought about option to implement java calendar but I failed in using java.
Calendar cal = Calendar.getInstance();
cal.set(Calendar.WEEK_OF_YEAR, 23);
cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
So if there is no XQuery function how can I use java calendar ?
Thanks for help.
Steffen
is there any possibility to get first and last day of a week number in XQuery ?
As input I have date formatted CCYYWW and want to get CCYYMMDD - CCYYMMDD
I also thought about option to implement java calendar but I failed in using java.
Calendar cal = Calendar.getInstance();
cal.set(Calendar.WEEK_OF_YEAR, 23);
cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
So if there is no XQuery function how can I use java calendar ?
Thanks for help.
Steffen
Last edited by SteffenWeitsch on Tue Feb 19, 2019 6:03 pm, edited 1 time in total.
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: gate date from week number
Hi Steffen,
We (the Oxygen team) do not work much internally with XQuery.
There seems to be quite a large collection of XQuery functions here:
http://www.xqueryfunctions.com/
You can also try to call Java methods directly in XQuery:
http://saxonica.com/html/documentation/ ... thods.html
Regards,
Radu
We (the Oxygen team) do not work much internally with XQuery.
There seems to be quite a large collection of XQuery functions here:
http://www.xqueryfunctions.com/
You can also try to call Java methods directly in XQuery:
http://saxonica.com/html/documentation/ ... thods.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service