Summary
The DateFormatter allows you to format a Niagara date (AbsTime) into a String with a personalized format
Implementation
-
Drag and drop a DateFormatter component into the station
-
Link an AbsTime slot to the InDate (CurrentTime from kitControl for example)
-
Write a Java format (https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html)
Properties
-
OutDate: Formatted input date
-
InDate: AbsTime input slot. By default set to January 1, 1970 at 1 am
-
Format: Format to encode the inDate. Ex: dd/MM/yyyy HH:mm:ss