Domino 9 und frühere Versionen > ND6: Administration & Userprobleme
LotusScript
MrSerious:
Wie kann ich ein Datumsfeld, wenn es so dargestellt wird: "08.06.2005" in dieses Format umwandeln: "200506"?
Gruss
Ernst
koehlerbv:
Hast Du wirklich ein Datumsfeld oder ein Feld mit einem String à la "08.06.2005" ? Das Verfahren ist davon abhängig.
Was ist eigentlich mit Deinen beiden anderen offenen Threads ?
Bernhard
MrSerious:
habe wirklich ein datumsfeld. wird von notes erstellt!
Glombi:
dann so
dim doc as NotesDocument
dim ndt as NotesDateTime
dim YYYYMMstr as string
set session und doc ....
set ndt = New NotesDateTime( doc.DeinFeldname(0) )
YYYYMMstr = Cstr(Year(ndt.LSLocalTime)) & Right$("0" & Cstr(Month(ndt.LSLocalTime)),2)
Andreas
Glombi:
oder ganz simpel mit
YYYYMMstr = Format$( doc.DeinFeldname(0), "yyyymm" )
Navigation
[0] Themen-Index
[#] Nächste Seite
Zur normalen Ansicht wechseln