Domino 9 und frühere Versionen > ND9: Entwicklung
Format-Funktion in Lotus Script
(1/1)
MLe56:
Ich wolle eine NotesDateTime-Object im Format "yyyymmdd" ausgeben.
Bei der Funktion Format(<notesdatetime>,"yyyymmdd") bzw. Format(<notesdatetime>) erscheint die Fehlermeldung "Type Mismatch"
Beispiel:
Set dtTmp = sess.Createdatetime("Today")
Print Format(dtTmp)
Mit einem num. Wert in der Formatfunktion funktioniert es:
print Format(36525, "yyyymmdd")
Weiß jemand, wie die Formatfunktion richtig angewendet werden muss?
Matthias
Tode:
Format geht nur auf ein Variant vom Typ DateTime, NICHT auf ein Objekt der Klasse NotesDateTime.
Probier mal:
--- Code: ---Print Format(dtTmp.LSLocalTime)
--- Ende Code ---
MLe56:
Hallo Torsten,
danke für die schnelle Antwort, genau so funktioniert's.
MfG
Matthias
Navigation
[0] Themen-Index
Zur normalen Ansicht wechseln