Ankündigung: Alle nicht kommerziellen Projekte, die vor dem 15. April 2025 für die Nutzung der Earth Engine registriert wurden, müssen die Berechtigung zur nicht kommerziellen Nutzung bestätigen, um weiterhin auf die Earth Engine zugreifen zu können.
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Ein Datum in einen String umwandeln.
Nutzung
Ausgabe
Date.format(format, timeZone)
String
Argument
Typ
Details
So gehts: date
Datum
format
String, Standard: null
Ein Muster, wie unter http://joda-time.sourceforge.net/apidocs/org/joda/time/format/DateTimeFormat.html beschrieben. Wenn es weggelassen wird, wird die Datumsformatierung nach ISO-Standard verwendet.
timeZone
String, Standard: null
Die Zeitzone (z.B. „America/Los_Angeles“); die Standardeinstellung ist UTC.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["`ee.Date.format()` converts an Earth Engine `Date` object to a formatted string representation."],["The `format` argument uses Joda-Time formatting patterns for customization."],["The `timeZone` argument, if provided, adjusts the output to the specified time zone; defaults to UTC."],["If `format` is omitted, the ISO standard date formatting is used."],["Joda-Time formatting patterns provide flexible options to display various date and time components, including year, month, day, hour, minute, second, time zone, and more."]]],["The `Date.format()` method converts a date to a string. It accepts a `format` string based on Joda-Time patterns and an optional `timeZone` string; if these arguments are omitted, the function will use default ISO formatting and UTC timezone. The method takes a date as input, and outputs a string representing the date, with specific formatting and time zone adjustments. The document also shows how to apply the formatting patterns.\n"]]