3.133.159.224 |    

Navigation

Google Advertisement

Die Funktion check_date() prüft ob es sich um ein gültiges Datumsformat im Format DD.MM.YYYY handelt. Bei Erfolg wird TRUE (bzw. 1), im Fehlerfall wird FALSE (bzw. 0) zurück gegeben.

check_date
  1. sub check_date {
  2.  
  3. # Datum auf richtiges Format checken (dd.mm.yyyy)...
  4. if ($_[0] =~ /^((0[1-9])|([1-2][0-9])|(3[01]))\.((0[1-9])|(1[0-2]))\.[1-9]\d{3}$/)
  5. 	{ return 1; } else { return 0; }
  6.  
  7. }
Parsed in 0.001 seconds at 220.01 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 2 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)