Hi Francis, UN/EDIFACT geek here :-) UN/EDIFACT does not specify what the first week of the year is beyond the description of the code. It is up to the parties involved to mutually agree on this. For the cases that I'm aware off, the partners implemented is as ISO 8601 week[1], so that would be your best guess. In my own translator, this type of mapping is not hardcoded, but rather scripted to allow for the flexibility..
kind regards, Gait Boxman On 9/1/2011 8:25 AM, Francis Upton wrote: > I'm hoping an EDIFACT geek will know this. > > In the EDI Translator product I'm working on, it automatically converts > dates from EDI style dates to ISO 8601 dates which are used by XML. It is > intended to understand all of the date qualifiers for X12 and EDIFACT. > > EDIFACT has a few date qualifiers that specify weeks in the year, like > CCYYWW (616) for example. The EDIFACT specification states: > > 616 CCYYWW > Week within a calendar year: CC = Century; Y = Year; W = > Week (1st week of January = week 01). > > However, it is not clear if this is an ISO 8601 week[1] or something else > (like the year divided into 7 day periods starting with Jan 1). > > This is important because if affects how the dates are converted to and from > ISO 8601 format. In most years (with ISO 8601 weeks), the first day of the > week will actually be in the prior year. > > Anyone know for sure or have a reference on this? Teh google was not very > helpful so far. > > Thanks kindly, > > Francis > > [1] http://en.wikipedia.org/wiki/ISO_week_date > > > [Non-text portions of this message have been removed] > > > > ------------------------------------ > > ... > Please use the following Message Identifiers as your subject > prefix:<SALES>,<JOBS>,<LIST>,<TECH>,<MISC>,<EVENT>,<OFF-TOPIC> > > Job postings are welcome, but for job postings or requests for work:<JOBS> > IS REQUIRED in the subject line as a prefix.Yahoo! Groups Links > > > > ------------------------------------ ... Please use the following Message Identifiers as your subject prefix: <SALES>, <JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>, <OFF-TOPIC> Job postings are welcome, but for job postings or requests for work: <JOBS> IS REQUIRED in the subject line as a prefix.Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/EDI-L/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/EDI-L/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
