Use SFC1 (FC_read_clk) to obtain Date and Time and "send" to a "date/time parameter.
The date & time parameter is 8 bytes long and has the following format:-
0 Year 1990 to 2089
1 Month 01 to 12
2 Day 1 to 31
3 Hour 0 to 23
4 Minute 0 to 59
5 Second 0 to 59
6 2 MSD of ms 00 to 99
7 (4 MSB) LSD of ms 0 to 9
7 (4 LSB) Day of week 1 to 7 (1 = Sunday)
use these bytes within your program.
Best of luck