Hello
I want to create a string to represent the ending date and time of a bar
Date string = YYYMMDD
Time string = HH:MM:SS.
To start i use:
Code: Select all
DatetoString(Date) return: 4941-07-16 // date = 2011-09-01
TimeToString (Time) return 00:00:00 // time = 09:45
Obviously it is not the proper way since the output of both DateToString And TimeToString are not related at all.
Any help appreciated
Martin
DatetoString requires a
datetime input, not a "date" as in YYYYMMDD.
DateTime is a decimal valued unique serial number of a specific date/time.
Working with date/time in EasyLanguage is tricky.
EasyLanguage Reference Guide has the best explanation on EasyLanguage date/time operations.
https://www.TS.com/support/bo ... _Guide.pdf
CHAPTER: 2 - The Basic EasyLanguage Elements
Manipulating Dates and Times ...... pg 20