public long getTimestamp()
    {
    	System.out.println("getTimestamp():");
    	if (timestamp==null) return 0;
    	long ts=0;
    	if ( timestamp == null ) timestamp = "";
    	else
    	{
	    //	timestamp=timestamp.trim();
	      	if ( timestamp.length()>0 ) 
	      	{
	      		try
	      		{
	      			ts = new Long(timestamp).longValue();
	      		}
	      		catch(Throwable t){ts=0;}
	      	}
	    }
      	if ( ts < 1 )
	      	{
		      	boolean udate = true;
		      	
		      	String dt = getDate();
		      	if (dt.trim().length()<8) udate = false;
		      	String time = getTime();
		      	if ( udate )
		      	{
		      	
			      	String yr="0";
			      	String mnth="0";
			      	String dy="0";
			      	String hr = "0";
			      	String min = "0";
			      	if (!(dt.trim().length()<8)) 
			      	{
			      		yr = dt.substring(0, 4);
			      		mnth = dt.substring(4, 6);
			      		dy = dt.substring(6, 8);
			      	}
			      	
			      	if ( !(time.trim().length()<4))
			      	{
			      		hr = time.substring(0, 2);
			      		min = time.substring(2, 4);
			      	}
			      	
			      	int y = new Integer(yr).intValue();
			      	int m = new Integer(mnth).intValue()-1;
			      	int d = new Integer(dy).intValue();
			      	int h = new Integer(hr).intValue();
			      	int mn = new Integer(min).intValue();
			      	java.util.Calendar cal = java.util.Calendar.getInstance();
			      	cal.set(y, m, d, h, mn);
			      	ts = cal.getTimeInMillis();
			     }
			     
			}
			return ts;
    }