sas totoDepends whether your dates are like a, b or c in the following example . data test; a = 201506; * YYYYMM as a number * b = '01JUN2015'd; * SAS date value with YYYYMMSAS Released on: Composer: DJ Ritmin Composer: Enma Keyboards, Programmer: Morgan Rouquet Composer: DoubleA Keyboards