|
 |
|
แสดงวันที่...ใช้ sql server2000 ในฟิลด์ date มันเก็บวันที่แบบนี้ 1985-09-25 00:00:00.00 (ปี เดือน วัน เวลา) |
|
 |
|
|
 |
 |
|
ได้และค่ะ 
|
 |
 |
 |
 |
Date :
2009-06-17 13:29:40 |
By :
kukkikonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ทำยังงัยครับ
|
 |
 |
 |
 |
Date :
2009-06-17 13:40:58 |
By :
bazoo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ใช้ substr เลย ค่ะ (เล่นง่ายๆเลยเรา) ส่วน format วันที่ไม่ซีเรียสเท่าไหร่ เอาแค่ตัวเลขก็ได้ 
|
 |
 |
 |
 |
Date :
2009-06-17 15:41:04 |
By :
kukkikonline |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
select right(convert(varchar(8),date_t,112),2) + '/'substring(convert(varchar(8),date_t,112),5,2)
จะได้ตามรูปแบบ
25/9 คือไม่เอา ค.ศ ไม่เอาเวลา
|
 |
 |
 |
 |
Date :
2009-06-26 15:17:06 |
By :
taobsd |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|