Question : date will not convert correctly using strtotime

I am using the code below to change my date to insert into mysql and it is not converting correctly. It keeps returning a value of 1969-12-31.
1:
2:
$ADate = $_POST['ADate'];
$ADate = date("Y-m-d", strtotime($ADate));

Answer : date will not convert correctly using strtotime


get_Name and set_Name like methods are internally added by the c# compiler to the class when you define a property Name. For a property X having get; and set; c# compiler will add get_X and set_X methods.

Property is only a higher level feature and internally a class can have only fields and methods (atleast in this conext), so the compiler maps the properties with methods.

There is no reason you have to use it directly. You can just use the property.
When you use a property, during compilation, this line => objectx.Name
is coverted to objectx.get_Name.
So there is no property concept at the lower level.
Random Solutions  
 
programming4us programming4us