Send Date types variables to M340 PLC

Hello,

I am trying to include in my software a simple interface to schedule maintenance of a sensor.

How can I send a Date type variable to M340 PLC?

What I have done now is use strings and split it in day, month and year.

Is there a simple way?

Thank you very much!