sublyer 0 Denunciar post Postado Janeiro 5, 2009 Olá, estou com uma dúvida ao pegar a semana de uma data, segue abaixo o demonstrativo. Data: 1-dez-2008 20:47:53 Comando 1: TO_CHAR (TO_DATE (01122008 204753', 'DDMMYYYY HH24MISS'), 'IW') Resultado 1: 49 ------------------------- Comando 2: TO_CHAR (TO_DATE (01122008 204753', 'DDMMYYYY HH24MISS'), 'WW') Resultado 2: 48 Alguém saberia me dizer porque isso acontece? Obrigado por quem ajudar. Compartilhar este post Link para o post Compartilhar em outros sites
Motta 645 Denunciar post Postado Janeiro 5, 2009 IW No Week of year (1-52 or 1-53) based on the ISO standard. -- WW No Week of year (1-53) where week 1 starts on the first day of the year and continues to the seventh day of the year. -- fonte http://download.oracle.com/docs/cd/B19306_...s004.htm#i34924 Compartilhar este post Link para o post Compartilhar em outros sites