Datum im Format yyyy-mm-dd anzeigen?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #237435 quote
    kkgfin
    Participant
    New

    Guten Tag,

    Gibt es eine Möglichkeit, ein Datum (YYYYMMDD) im Format “YYYY-MM-DD” in einer DRAWTEXT-Anweisung auszugeben?

    Aktuell liefert  DRAWTEXT(“Vortagesdatum #PrevDate#”, …..)  die Ausgabe “Vortagesdatum 20,2M”

    Hinweis:  PrevDate wird vorgängig im Programm ermittelt. Entspricht dem “date” der 9-Uhr Kerze des Vortages im 5-Minutes Chart.

    Im “Programming Guide” Pdf konnte ich keine Informationen zu meiner Frage finden.

    Beste Grüsse

    Karlheinz

    #237444 quote
    robertogozzi
    Moderator
    Master

    Datumsangaben werden als Zahlen behandelt, sodass alle führenden Nullen entfernt werden und große Zahlen als Millionen abgekürzt werden.
    Das Datum muss durch separates Drucken seiner Bestandteile aufgeschlüsselt werden:

    DEFPARAM DrawOnLastBarOnly = true
    YY = OpenYear
    MM = OpenMonth
    DD = OpenDay
    Drawtext("#YY#-#MM#-#DD#",BarIndex + 5,high,dialog,bold,13)
    return
    Iván González thanked this post
    #237446 quote
    kkgfin
    Participant
    New

    Danke Roberto,

    Schade, dass PRT bezüglich der Datumsformatierung nicht mehr hergibt.

    Schöne Grüsse

    Karlheinz

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Datum im Format yyyy-mm-dd anzeigen?


ProBuilder Support

New Reply
Author
author-avatar
kkgfin @kkgfin Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by kkgfin
1 year, 4 months ago.

Topic Details
Forum: ProBuilder Support
Language: German
Started: 09/10/2024
Status: Active
Attachments: No files
Logo Logo
Loading...