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 TOTO Student, Consultant, and Writer in Psr Tanah Abang Bl C Los GKS22, Dki Jakarta