Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Werkzeuge (https://www.delphipraxis.net/63-sonstige-werkzeuge/)
-   -   coco/R und datum (https://www.delphipraxis.net/165221-coco-r-und-datum.html)

Tobinator 19. Dez 2011 12:15

coco/R und datum
 
hi,

weis jemand, wie ich ein Datum der Form yyyymmdd (string) mit Coco/R in ein datum umwandeln kann?
Soweit bin ich schon
Code:
COMPILER date
CHARACTERS
   digit = '0'..'9'.
TOKENS
   number8 = digit digit digit digit digit digit digit digit.
PRODUCTIONS
   date = number8.
END date.
Das sollte dann irgendwie so aussehn:

Code:
PRODUCTIONS
   date = (. char d[8]; .) number8<ref d> (. strTodate(d); .).
Die Tutorials, die ich gefunden habe sind auch nicht so aussagekräftig.


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:00 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz