Time FormatDate FormatDate and time format specifiers for custom date and time output.
†Note: By default, dates and times in Origin are stored internally as as an adjusted Julian-day value. In this system, Origin will display seconds to six decimal digits but the precision is limited to 0.0001 seconds when rounded at the fourth decimal digit. Starting with Origin 2019, Origin supports an optional 2018 date-time system in which "time zero" is defined as January 1, 2018 00:00. Assuming contemporary date-time measurements, this system affords much better resolution of the time portion of date-time data (up to 8 decimal digits).
col(1) = @D;
wks.col1.setformat(4,22,dddd', 'MMMM' 'dd', 'yyyy' 'hh':'mm' 'tt); // Shows today's date
wks.col1.width = 24;