×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Is there a way to extract from a time stamp field just the date and putting
it into a numeric 8,0 field in *USA?
Now I know you can extract portions using %SUBDT.
I know if I was putting it into a *ISO date field I could use %date.
But is the only method to use is building a data structure over the
timestamp like this;
D DS
D MyTimeStamp Z
D HereIsTheDate D Overlay(MyTimeStamp:1)
D HereIsTheTime T Overlay(MyTimeStamp:12)
Then doing;
NumericUsa = %int(%char(HereIsTheDate:*usa0));
Thanks;
Andy
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.