Harley
17th February 2004, 04:30
Hi Guys,
I would like to add information of current date in the detail report, and not in the header, but I don't know the function to get the current date.
I believe that someone in this community know this function?
Thanks
Harley
bdittmar
17th February 2004, 10:09
extern domain tcdate curr.date
detail.x:
before.layout:
curr.date = date.num()
Regards Bernd
zardoz
17th February 2004, 11:12
Simpler way:
put date.num() in the field, ignoring the warning.
Harley
17th February 2004, 12:10
Dear zardoc and bdittmar,
I have followed your advice, but the result is "09011970" and not current date.
Regards,
Harley
bdittmar
17th February 2004, 13:54
Check your system - date
Regards Bernd
sharma
18th February 2004, 12:02
use curr.date variable in report field insteed of date.num()
Rajasekhar
25th February 2004, 19:39
Hi Harley,
you got the date as 09011970 since you might defined the field as tcdate (which is utc format).
if you use non utc date date.num() will give the current date
if you use utc date utc.num() will give the current date in utc format.
so the field and domain should be in harmony.
date.num() with domain of non utc date format
utc.num() with domain of utc date format
and you can define the display format for that field in report itslef.
Hope this solves your problem
Regards,
Rajasekhar