How to Convert Date to Thai

Update

setlocale(LC_TIME, "th_TH.UTF-8");
echo strftime("%A %d %B %Y", strtotime(get_the_date()));

Before: อาทิตย์ 03 มกราคม 2016

//$strdate = get_thai_date();
//print_r($strdate["number"]); //preg, strstr or others.

//$strdate = date_i18n(...); 

After: อาทิตย์ ๐๓ มกราคม ๒๐๑๖

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)