Hi all,
from the snap, I have a column LBSTDAT_RAW which has date values in DD-MMM-YY format and i need to convert in to a format MM/DD/YYYY format. eg: the value 21-Apr-22 should be displayed as 04/21/2022. i also have date, month, year values in 3 different columns as numeric variables, can we use those to get the desired results?
Adding on to the (correct) suggestions given here: on computers, when you turn dates into DateTime datatypes (which is always recommended so you can do analyses on them), they are always in the format YYYY-MM-DD. This is an international standard (ISO - ISO 8601 — Date and time format). Regardless of your operating system or programming language, that is the standard for DateTime datatypes. If this is what you are looking for, you should use the package lubridate: it has functions that you can apply to pretty much any of the columns that are showing in your example to turn the dates into "proper" DateTime datatypes.
However, if your question only relates to visualization purposes, e.g. you're making a table, or this particular column represents labels you want to add to a plot, then you have to make the dates character datatype, as suggested in the previous answers. But note that they then behave as characters, not DateTime, when it comes to things like ordering and other data manipulation.