Hello,
I have an inventory script running metering active connections on our citrix servers. This script inserts its data into a table with a date and time stamp of the current metering. The date column was set to data type 'date time' resulting in the date being presented in the following manner: 2008-01-15 00:00:00
I tried to fix that by changing the datatype to 'char'. this resulted in the data being converted to: Jan 15 200
The column has now been set to datatype varchar to accept more than 10 characters and 'new' data from the metering is presented in a correct manner: 2008-01-21
But I do need to change all occurrences of ex. 'Jan 15 200' to 2008-01-15. I've looked at the replace command but I didn't quite understand it. So I'm wondering if there's anyone who knows how to solve this problem.
Thankful for all replies
I have an inventory script running metering active connections on our citrix servers. This script inserts its data into a table with a date and time stamp of the current metering. The date column was set to data type 'date time' resulting in the date being presented in the following manner: 2008-01-15 00:00:00
I tried to fix that by changing the datatype to 'char'. this resulted in the data being converted to: Jan 15 200
The column has now been set to datatype varchar to accept more than 10 characters and 'new' data from the metering is presented in a correct manner: 2008-01-21
But I do need to change all occurrences of ex. 'Jan 15 200' to 2008-01-15. I've looked at the replace command but I didn't quite understand it. So I'm wondering if there's anyone who knows how to solve this problem.
Thankful for all replies