codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Date checking script  garyprmr at 08:57 on Wednesday, January 17, 2007
 

I am a novice , Please let me know the mistake in the code below
after this one I will modify for checking of number of days , months and year

chomp($value = <STDIN>);
if($value =~ /\d\d\-\d\d\-\d\d\d\d /)
{

print "date";
}else{
print $value;
print "not a date";
}








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Open new window with content
•  Using ASP Classic to Download an Image from SQL Server 2000
•  Set window position using button
•  Re: how to get LastModified time of a file in repository(in weblogic8.2 )
•  Re: Java Checkers
•  Re: .net
•  trying get the attributes of a file on the internet
•  Date checking script
•  Re: Small Java Program Help


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007