About 531,000 results
Open links in new tab
  1. converting string date to date format yyyy-mm-dd - SAS …

    Jun 5, 2025 · You are making the new numeric variable CRDATE by using the INPUT function to turn the string ' 2024-11-15 ', etc, into a numeric value representing a SAS date value. You …

  2. Input date format like YYYY-MM-DD? - SAS Communities

    Oct 11, 2018 · Hi all: If I have a data like 2014-06-09, please advise me how to input it from a text file into date format as in SAS file. Thanks.

  3. Solved: How to format dates? - SAS Support Communities

    May 16, 2018 · To control the appearance of a date you would use a format. This type of structure is what most programming languages and Excel use, though the 'start date' (jan 1, 1960) can …

  4. SAS date format - SAS Support Communities

    Jul 28, 2022 · I have extracted the date from a file and it is in the format of 09-30-21 and I have to convert this to the format 30Sep2021. Is there a way I could do this?

  5. Date formatting in a where statement - SAS Communities

    Dec 12, 2017 · Hi, I'mt rying to select a date range from a table that currently has dates in the format: 18NOV2016:14:31:52.000000 I tried using where date >= '01JAN2017'd. However, , …

  6. Converting a SAS date to a formatted Date

    Jul 27, 2017 · For some reason I can not figure this out. I have a variable, 'date' that is a numeric variable and has SAS value dates. For example: date=19632 Which refers to the date of …

  7. How to convert SAS date to character YYYY-MM in one step?

    Jan 7, 2020 · Re: Convert SAS date to character YYYY-MM format in one step Posted 01-07-2020 06:27 AM (55124 views) | In reply to David_Billa You can use the YYMMd format: …

  8. Converting date from " DATETIME20." format to SAS date format

    Aug 29, 2013 · Solved: Dear All, I have a data which has date in the DATETIME20. format. I need date in sas format so that I can used a conditioning statement in my

  9. How to format date values in Proc SQL - SAS Communities

    Oct 1, 2015 · Given Format - YYYYMM Required Format - YYMMDD (default dd to 01) Can anyone suggest how to do it in proc sql.?

  10. How to convert the Char to Date format? - SAS Communities

    Sep 5, 2018 · Hi! I would like to seek your help to solve my question! My existing variable format is Char "2018-08-31 00:00:00" and I want to convert it to SAS Date9. format. Please see my …