Question: I realized an invoicing application in J2EE(jsp,servlet), after having finished my program and tests, I noticed the following error:
my sql server table FACTURE contains:
Price NUMERIC (6,2)
the user enters 333.33 is good but WHENE HE enters
333333 is the error.
is there any other type in sql server that allows me to enter data in this way without errors MOSTLY I WANT DISPLAY WITH DECIMAL,I tested type float but it doesn't allow me to display zeros at the end.

Answer: 
Use `strtotime()` to make a timestamp for the date you want:

```
setcookie("Cookie_name", "Cookie_value", strtotime('2013-08-16'));

```
Or:-

```
setcookie("Cookie_name", "Cookie_value", (new \DateTime)->modify('tomorrow')->getTimestamp();

```