Getdate()

Hallo,

bei dem Befehl Getdate() werden außer das aktuelle Datum auch die Systemzeit ausgegeben. Kann mir bitte jemand sagen, was ich tun muss,
um nur das aktuelle Datum zu erhalten?

Vielen Dank

Gerd Wagner

Hi,

also in Oracle mußt du es mit trunc „abschneiden“.

The syntax for the trunc function is:

trunc ( date, [format] )

For example:

trunc (to_date (‚22-AUG-03‘), ‚YEAR‘) would return ‚01-JAN-03‘
trunc (to_date (‚22-AUG-03‘), ‚Q‘) would return ‚01-JUL-03‘
trunc (to_date (‚22-AUG-03‘), ‚MONTH‘) would return ‚01-AUG-03‘
trunc (to_date (‚22-AUG-03‘), ‚DDD‘) would return ‚22-AUG-03‘
trunc (to_date (‚22-AUG-03‘), ‚DAY‘) would return ‚17-AUG-03‘

Hoffe das dir das hilft!

Gruß
Alex

[Bei dieser Antwort wurde das Vollzitat nachträglich automatisiert entfernt]

Alex,

vielen Dank, das meinte ich.

Gruss
Gerd

[Bei dieser Antwort wurde das Vollzitat nachträglich automatisiert entfernt]