Data w formacie Dzień/Miesiąc/Rok
Data w układzie Dzień/Miesiąc/Rok
25/9/2008
Listing
<script language="javascript">
<!-- W3e JAVAScript Preset/Date
var DDMMYY =0
var MMDDYY =1
function getdate(mode)
{
var now = new Date();
var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();
if (mode==DDMMYY)
var MonthDayYear =(dayNr+"/"+(now.getMonth()+1)+"/"+now.getFullYear());
else
var MonthDayYear =((now.getMonth()+1)+"/"+dayNr+"/"+now.getFullYear());
return MonthDayYear;
}
function gettime()
{
var now = new Date();
var ampm = (now.getHours() >= 12) ? " P.M." : " A.M."
var hours = now.getHours();
hours = ((hours > 12) ? hours - 12 : hours);
var minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
var seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();
var TimeValue =(" " + hours + minutes + seconds + " " + ampm);
return TimeValue;
}//-->
</script>
<script language="javascript">document.write(getdate(DDMMYY));</script>
<!-- W3e JAVAScript Preset/Date
var DDMMYY =0
var MMDDYY =1
function getdate(mode)
{
var now = new Date();
var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();
if (mode==DDMMYY)
var MonthDayYear =(dayNr+"/"+(now.getMonth()+1)+"/"+now.getFullYear());
else
var MonthDayYear =((now.getMonth()+1)+"/"+dayNr+"/"+now.getFullYear());
return MonthDayYear;
}
function gettime()
{
var now = new Date();
var ampm = (now.getHours() >= 12) ? " P.M." : " A.M."
var hours = now.getHours();
hours = ((hours > 12) ? hours - 12 : hours);
var minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
var seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();
var TimeValue =(" " + hours + minutes + seconds + " " + ampm);
return TimeValue;
}//-->
</script>
<script language="javascript">document.write(getdate(DDMMYY));</script>
Dodano przez: igor
Ranga: Administrator serwisu Punktów: 0
Ranga: Administrator serwisu Punktów: 0
Komentarze użytkowników
:: Losowe artykuły
:: Wymiana linków
Modowe inspiracje |
Android Gry i Aplikacje |
ZaplanujTransport.pl: Przeprowadzki, transport, aukcje |
Logo dla firmy |
Change Tires - Car Weather Forecast Reminder |
Laminas: MVC Framework for PHP |
IT Books Reviews and Programming: JS, JAVA, PHP, ANDROID, CSS |
Katalog roślin |
Programming articles: JAVA, PHP, C++, Python, JavaScript |
Kancelaria Adwokacka Łukasz Huszno