|
เปลี่ยน Datetime เป็นวันที่ พศ ภาษาไทย
totext(day(PrintDate),0) + " " + ( if Month(PrintDate)=1 then "มกราคม" else if Month(PrintDate)=2 then "กุมภาพันธ์" else if Month(PrintDate)=3 then "มีนาคม" else if Month(PrintDate)=4 then "เมษายน" else if Month(PrintDate)=5 then "พฤษภาคม" else if Month(PrintDate)=6 then "มิถุนายน" else if Month(PrintDate)=7 then "กรกฎาคม" else if Month(PrintDate)=8 then "สิงหาคม" else if Month(PrintDate)=9 then "กันยายน" else if Month(PrintDate)=10 then "ตุลาคม" else if Month(PrintDate)=11 then "พฤศจิกายน" else if Month(PrintDate)=12 then "ธันวาคม" else "") + " " + totext(if(Year(PrintDate)<2500) then Year(PrintDate)+543 else Year(PrintDate),0,"")
credit: //pmcom.blogspot.com/2015/08/thailongdate-formula-field-in-crystal.html
Create Date : 24 ธันวาคม 2558 |
Last Update : 24 ธันวาคม 2558 9:13:19 น. |
|
0 comments
|
Counter : 545 Pageviews. |
|
|
|
|
|
|
|
santi4524 |
|
|
|
|