5 messages in org.openoffice.fr.progRe: [prog] Dates boite de dialogue et...
FromSent OnAttachments
nicolasAug 29, 2006 9:05 am 
Marceau GUIHARDAug 29, 2006 10:51 am 
Serge LE LOUARNEAug 29, 2006 12:49 pm 
Marceau GUIHARDAug 29, 2006 1:49 pm 
Serge LE LOUARNEAug 30, 2006 4:18 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] Dates boite de dialogue et APIActions...
From:Serge LE LOUARNE (serg@free.fr)
Date:Aug 30, 2006 4:18:31 am
List:org.openoffice.fr.prog

Marceau GUIHARD a écrit :

Désolé, j'ai cherché dans l'API un service "com.sun.star.util.date", je n'ai pas trouvé, par contre, il existe une structure "com.sun.star.util.Date" qui répond à la question et je l'ai testée, ça marche très bien.

Sub Main() Dim DateOOo As New com.sun.star.util.Date Dim DateISO As String DateIso ="20060829" DateOOo.year=Left(DateISO,4) DateOOo.Month=Mid(DateISO,5,2) DateOOo.Day=Right(DateISO,2) print DateOOo.Day & "/" & DateOOo.Month & "/" & DateOOo.year End Sub

Cordialement

Marceau

Hello,

Et puis en plus, mon copié/collé est erroné, il y a deux définitions "com.sun.star.util.Date" ...

A+ Serge