|
|
|
สอบถามการดึงข้อมูล date time จาก db access มาแสดงในรูปแบบ dd/mm/yy ครับ |
|
|
|
|
|
|
|
ดัดแปลงจากตัวนี้ครับ
Code (ASP)
<%
Function DateThai(strDate)
Setlocale("en-us")
Dim strDay,strMonth,strYear,strHour,strMinute,strSecond
Dim arrMonth
strDay = Day(strDate)
strMonth = Month(strDate)
strYear = Year(strDate)
strHour = Hour(strDate)
strMinute = Minute(strDate)
strSecond = Second(strDate)
arrMonth = Array("ม.ค","ก.พ","มี.ค","เม.ษ","พ.ค","มิ.ย","ก.ค","ส.ค","ก.ย","ต.ค","พ.ย","ธ.ค")
DateThai = strDay &" "&arrMonth(strMonth-1) &" "&strYear &" "&strHour &":"&strMinute &":"&strSecond
End Function
Response.write DateThai("09/09/2008 15:16:17")
%>
Go to : ASP/VBScript DateThai()
|
|
|
|
|
Date :
2012-07-16 16:31:09 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ขอบคุณครับ จะลองไปทำดู
|
|
|
|
|
Date :
2012-07-17 06:39:09 |
By :
Jumyut |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|