07-15-2016 03:15 AM - edited 07-15-2016 03:56 AM
i've column containing dates as applicable and other field as value -Not Available-
sas va has considered that column as character and converted dates into numbers like 42494 (expectedly).
now I want to use those dates in to analysis..
any Idea on how to consider only numbers from that column and converting that numbers into dates ..
date format is mmddyy8.
08-18-2016 06:37 PM
Are you looking for this? That is, converting numerics (that are actually SAS numerics from data formats) back to date format?
If so, the same TreatAs function that converts dates to numerics can also convert numerics back to dates.
For example (and this is just from a random Google search):
Or ... are you actually looking to do this instead? That is, convert a custom numeric format that is date to you (e.g. 20150223) and you want it to be a date to Visual Analytics? If so, something like that is going to require using SAS Visual Data Builder because formulas like this are not possible directly within Visual Analytics Explorer or Designer:
Or ... perhaps I'm missing what you are actually after and neither of above are applicable to your question?
Hope this helps,
Ted Stolarczyk, SAS Customer Loyalty team