Hello,
I am trying to convert a date/time down to the milliseconds in order to insert into an SQL statement that I am using in my JSL script. The typical method I use to do so usually creates the variable (date) with single quotes around it. However, when attempting the same method to my date/time which includes milliseconds it adds two single quotes to each end of the variable. Could someone assist in potentially solving my issue, and/or helping pointing me in a different direction for the result I am looking for?
dt1 = Current Data Table ();
dt1 << New Column ("Year", Formula(Year(Today())));
dt1 << New Column ("Month", Formula(Month(Today())));
dt1 << New Column ("Day", Formula (Day(Today())));
dt1 << New Column ("UpdateDate", Formula (Char( :Year ) || "-" || Char( :Month ) || "-" || Char( :Day ) || "-" ||
"12.20.00.000000"));
dt2 = dt1 << Summary (
Group (:UpdateDate),
Link to Original Data Table (0)
);
dt2 = current data table ();
dt2 << Delete Columns ("N Rows");
date_id = dt3:UpdateDate << Get Values;
date_ids = "'"||date_id||"'"; The result I would like would be like this --> Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 420 StartFragment: 314 EndFragment: 388 StartSelection: 314 EndSelection: 314
'2021-3-4-09.20.00.000000'
Any help is appreciated!