|
On 18 apr, 10:31, enviro <farhadnejadkoo...@yahoo.co.uk> wrote:
> Hi there,
> How to convert numbers to dates. In the below 10321 is based on format of ymmdd which means 21/03/2001 and 1100 means 11:00:00.
>
> input = [10321 1100;10322 1200;10323 1300]
1) Extract dates, months and years from the number (Hint: The
numbers always appear in the same order. Divide by 100 to
move the 3rd digit to an easy-to-reach position.)
2) Use SPRINTF to reassemble the numbers on the desired format
3) Repeat for times.
And I wouldn't be surprised if something like DATESTR already
can do what you want.
Rune
|