Question: I tried to do the javascript to validate the date enter is in correct way. For example, for ETA(estimate time arrival), the date should be earlier than ETD(estimate time departure). 

This is the form:

```
   <form>
      <label>ETA</label>
             <input  id="etadate" name="etadate" type="date" />
             <input name="etatime" type="time"/> 
      <label>ETD</label>
             <input  id="etddate" name="etddate" type="date"/>
             <input name="etddime" type="time"/>                                                                                        
   </form>

```

And for the javascript:

```
function validate1
 {
       var x = document.getElementById("etadate");
       var y = document.getElementById("etddate");

       if (x < y)
       {
          true;
       }
       else
       {
          false;
       }
}

```

When i tried to run the code, it didnt give any notice to the user that the date for eta should be earlier than etd. I dont know where to adjust so the code run correctly.

Answer: 
S3 is not like a Linux file system.

Your S3 storage consists of buckets which contain objects in a completely flat space. The concept of "folder" is artificial: an object with key "foo" lives in the same flat bucket namespace as an object with key "path/to/bar". There is no separate step of creating a folder; you just give your object a key whose name contains separators like '/' and you can treat the buckets as having folders through some of the LIST APIs that involve common prefixes.

However, *buckets* do have to be created, once, before you can store things in them. You have to indicate, among other things, what region should host objects which go in that bucket.
Either the bucket name you given is incorrect or you didn't create the bucket.

You need to check out documentation about [Bucket Restriction](https://docs.aws.amazon.com/AmazonS3/latest/userguide/BucketRestrictions.html). From the documentation

> 
> * Bucket names must be at least 3 and no more than 63 characters long.
> * Bucket names must be a series of one or more labels. Adjacent labels are separated by a single period (.). Bucket names can
> contain lowercase letters, numbers, and hyphens. Each label must
> start and end with a lowercase letter or a number.
> * Bucket names must not be formatted as an IP address (e.g.,
> 192.168.5.4).
> * When using virtual hosted–style buckets with SSL, the SSL wildcard certificate only matches buckets that do not contain periods. To work
> around this, use HTTP or write your own certificate verification logic. We recommend that you do not use periods (".") in bucket  
> 
> names.
> 
> 
>