Hi
This is really driving me nuts.
I recently upgraded by VB project (VS2010 pro) to compile with .NET 4.0 (from 2.0), I don't know if this has caused the problem or not..
I'm sending data to an excel template, if I use the following:
objSheet.Range("c1").value =dsr(DsMaid2Clean.Cleaner.AddedColumn.ColumnName)
Then the date is printed in UK format (as it should), but it's datetime & I want rid of the time.
So I try:
objSheet.Range("c1").value =format("dd/MM/yy",dsrDsMaid2Clean.Cleaner.AddedColumn.ColumnName)
Now it comes out as just the date but excel shows it as US format!Couple of questions:
I'm sure I saw somewhere a setting in the project that changes the local to different regions. I wanted to check that was set right - but I can't find it now). The PC is set to UK.
Secondly how can I get that date to just the date without the time?
Thanks