Applies To: |
|
Summary: |
The customer required the data storage
facility within an SQL server. We want to transfer the energy
consumed per month with a particular date. The problem we are
facing is that the all the other data is transferred properly
except the Date. Date is stored in the wrong way. The sample code
is shown below;
STRING DATE2 =Date(2); Can you suggest the format for how to transfer the date to the SQL server? |
Solution: |
The date needs to be massaged into a
format that the SQL Server will accept. We need a function that
will return the date in a way that the server will relate to. Try
this general cicode function to correctly format the date variable
and then pass it to the SQL insert.
String String String |
Keywords: |
Related Links
Attachments