Dear
One equip send me the date and time in seconds since 70/1/1 (format "yy/mm/dd").
I want to convert in format "yy/mm/dd hh:mm:ss".
Is there some way to get it? with the Crbasic language from CR1000?
The CR1000 uses a time format of seconds since 90/1/1. If you take your time, and subtract the seconds between 1990 and 1970, you will have seconds since 1990. You can then use the SecsSince1990() instruction to get a date string.
There is not an option for the particular date format you want, so you will need to use string functions to pull pieces out of the date string and rearrange them. You will use the MID() and & functions.
but SecsSince1990() convert a date in seconds. I need the reverse one. Convert date from seconds.
That same instruction can be used both ways. If you use a source of type Long and a destination of type String, it will convert seconds to a date string.