parames
17th October 2002, 11:28
Hi list,
How to get the month and year from current date??

current.date = date.num()
But, from this current.date , i want the month and year..

Thanks.
Best Regards,
Parame.s

ulrich.fuchs
17th October 2002, 11:37
Use the num.to.date function to do this!

Ilansu
17th October 2002, 12:40
OR
you can use the dte$

string temp.dte(12)

temp.dte=dte$()

temp.dte(1;2) - > month
temp.dte(3;2) - > day
temp.dte(5;2) - > year

Ilan S

zacharyg
17th October 2002, 13:56
date.to.inputstr$

use date.to.inputstr$(), if you want the year including the century.
Also refer to sprintf$()