Programalama > ASP

Etiketler: hicri, takvim......

Ort. 5
Puan ver:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<%
d=Day(now)
m=Month(now)
y=Year(now)
%>
 
<SCRIPT LANGUAGE="JavaScript" runat=server>
function intPart(floatNum){
if (floatNum< -0.0000001){
  return Math.ceil(floatNum-0.0000001)
}
return Math.floor(floatNum+0.0000001)
}
</script>
 
<%
jd=intpart((1461*(y+4800+intpart((m-14)/12)))/4)+intpart((367*(m-2-12*(intpart((m-14)/12))))/12)-intpart((3*(intpart((y+4900+intpart( (m-14)/12))/100)))/4)+d-32075
l=jd-1948440+10632
n=intpart((l-1)/10631)
l=l-10631*n+354
j=(intpart((10985-l)/5316))*(intpart((50*l)/17719))+(intpart(l/5670))*(intpart((43*l)/15238))
l=l-(intpart((30-j)/15))*(intpart((17719*j)/50))-(intpart(j/16))*(intpart((15238*j)/43))+29
m=intpart((24*l)/709)
d=l-intpart((709*m)/24)
y=30*n+j-30
 
Select Case m
Case 1 :ay="Muharrem"
Case 2 :ay="Safer"
Case 3 :ay="Rebiü'l-Evvel"
Case 4 :ay="Rebiü'l-Ahir"
Case 5 :ay="Cemaziye'l-Evvel"
Case 6 :ay="Cemaziye'l-Ahir"
Case 7 :ay="Recep"
Case 8 :ay="Saban"
Case 9 :ay="Ramazan"
Case 10 :ay="Sevval"
Case 11 :ay="Zi'l-ka'de"
Case 12:ay="Zi'l-Hicce"
End Select
Response.Write(d&" " &ay&" " &y)
%>


Yorumlar                 Yorum Yaz
Bu hazır kod'a ilk yorumu siz yapın!
KATEGORİLER
ASP - 240
ASP.NET - 24
C# - 75
C++ - 174
CGI - 8
DELPHI - 247
FLASH - 49
HTML - 536
PASCAL - 246
PERL - 11
PHP - 160
WML - 9
XML - 2
Copyright © 2002 - 2025 Hazır Kod - Tüm Hakları Saklıdır.
Siteden yararlanırken gizlilik ilkelerini okumanızı tavsiye ederiz.
hazirkod.com bir İSOBİL projesidir.