Den Typ mit angeben:
Code: Alles auswählen
Function Erstelldatum() As Long
vDat = thisComponent.getDocumentInfo().CreationDate
Erstelldatum = DateSerial(vDat.Year, vDat.Month, vDat.Day)
end function
die Zelle anschließend mit dem Format-Code formatieren:
T. MMMM JJJJ
@Lenu
Ich grüble hier im Developpers Guide, aber entweder die Dokument-Info's werden hier nicht gelistet oder ich bin zu blöd, sie zu finden.
Ich weiß nicht ob die da stehen, systematisch nicht, wenn die drin stehen wären das Beispiele.
Systematisch steht das in der API-Referenz; online hier:
http://api.openoffice.org/docs/common/r ... tInfo.html
ist aber auch offline im SDK drin.
Außerdem geht immer
das gibt für
das hier:
Properties of object "Unknown":
SbxSTRING Author; SbxBOOL AutoloadEnabled;
SbxINTEGER AutoloadSecs; SbxSTRING AutoloadURL;
SbxSTRING BlindCopiesTo; SbxSTRING CopyTo;
SbxOBJECT/void
CreationDate; SbxSTRING DefaultTarget;
SbxSTRING Description; SbxINTEGER EditingCycles;
SbxLONG EditingDuration; SbxSTRING InReplyTo;
SbxBOOL IsEncrypted; SbxSTRING Keywords;
SbxSTRING MIMEType; SbxSTRING ModifiedBy;
SbxOBJECT/void ModifyDate; SbxSTRING Newsgroups;
SbxSTRING Original; SbxOBJECT/void PrintDate;
SbxSTRING PrintedBy; SbxINTEGER Priority;
SbxSTRING Recipient; SbxSTRING References;
SbxSTRING ReplyTo; SbxBOOL SaveVersionOnClose;
SbxSTRING Template; SbxSTRING TemplateFileName;
SbxOBJECT/void TemplateDate; SbxSTRING Theme;
SbxSTRING Title; SbxARRAY Types;
SbxARRAY ImplementationId; SbxINTEGER UserFieldCount;
SbxOBJECT PropertySetInfo; SbxARRAY PropertyValues;
SbxSTRING Dbg_SupportedInterfaces; SbxSTRING Dbg_Properties;
SbxSTRING Dbg_Methods
Auch die Format-Angabe "DateSerial" würde mich näher interessieren.
Nein, das ist eine normale Basic-Funktion zu finden in der Online-Hilfe unter:
Makros und Programmierung - Befehle
Gruß
Stephan