Index: /trunk/DataCheck/QuickLook/Step2a.sh
===================================================================
--- /trunk/DataCheck/QuickLook/Step2a.sh	(revision 17903)
+++ /trunk/DataCheck/QuickLook/Step2a.sh	(revision 17904)
@@ -7,4 +7,10 @@
 if [ "$certaindate" != "" ]
 then
+   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
+   if [ "$checkstring" = "" ]
+   then
+      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
+      finish
+   fi
    getdates $certaindate
 else
Index: /trunk/DataCheck/QuickLook/Step3.sh
===================================================================
--- /trunk/DataCheck/QuickLook/Step3.sh	(revision 17903)
+++ /trunk/DataCheck/QuickLook/Step3.sh	(revision 17904)
@@ -41,4 +41,10 @@
 if [ "$certaindate" != "" ]
 then
+   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
+   if [ "$checkstring" = "" ]
+   then
+      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
+      finish
+   fi
    getdates $certaindate
 else
