|
![](/images/resource/spacer.gif) |
|
ใช้ JavaScirpt วันที่ภาษาไทย แสดงวันที่แล้วขึ้น พ.ศ. แปลกๆๆ ครับ ช่วยดูที |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
มันขึ้นเป็น วันพุธที่ 19 มิถุนายน 656
Code (C#)
<script language="javascript">
now = new Date();
var thday = new Array("อาทิตย์", "จันทร์","อังคาร", "พุธ", "พฤหัส", "ศุกร์", "เสาร์");
var thmonth = new Array("มกราคม", "กุมภาพันธ์", "มีนาคม","เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน","ตุลาคม", "พฤศจิกายน", "ธันวาคม");
document.write("วัน" + thday[now.getDay()] + "ที่ " + now.getDate() + " " +
thmonth[now.getMonth()] + " " + (0 + now.getYear() + 543));
</script>
Tag : ASP
![](/images/adv.jpg?v=1001)
|
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2013-06-19 11:01:44 |
By :
thewinner55 |
View :
1408 |
Reply :
1 |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
Code (JavaScript)
<script language="javascript">
now = new Date();
var thday = new Array("อาทิตย์", "จันทร์","อังคาร", "พุธ", "พฤหัส", "ศุกร์", "เสาร์");
var thmonth = new Array("มกราคม", "กุมภาพันธ์", "มีนาคม","เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน","ตุลาคม", "พฤศจิกายน", "ธันวาคม");
document.write("วัน" + thday[now.getDay()] + "ที่ " + now.getDate() + " " +
thmonth[now.getMonth()] + " " + (now.getFullYear() + 543));
</script>
ใช้ getFullYear แทนครับ
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2013-06-19 11:11:50 |
By :
mr.win |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
|
![](/images/digitalocean-banner.jpg)
|
Load balance : Server 03
|