Attention
IronPLC implements many parts of the IEC 61131-3 standard and is working toward full Structured Text support. Key features still missing include structures and user defined function blocks.
DT_TO_DATE¶
Extracts the date portion from a date-and-time value.
IEC 61131-3 |
Section 2.5.1.5 |
Support |
Supported |
Signatures¶
# |
Input (IN) |
Return Type |
Support |
|---|---|---|---|
1 |
|
|
Supported |
Description¶
Extracts the date portion from IN by stripping the time-of-day component,
returning a DATE value representing midnight of the same day.
The long-form alias DATE_AND_TIME_TO_DATE is also supported.
Example¶
See Also¶
DT_TO_TOD — extract time-of-day from datetime
CONCAT_DATE_TOD — combine date and time-of-day