Convert to date format -"YYYY-MM-DD"

CDate(VariableA).ToString(“yyyy-MM-dd”)