VBA date format

vbanewbie68

Board Regular
Joined
Oct 16, 2021
Messages
171
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi

Can anyone help me on this please?

Please see my screenshot. How to change this: 2021-11-09T15:00:57 UTC into dd/mm/yyyyy format in VBA?

Thank you in advance

Best

V



1644610359952.png
 
Well done for solving it yourself - sorry, I was having dinner.
Did you work out why it wasn't working? (I think I know). Also, do you understand why the C2 data came out differently?
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Well done for solving it yourself - sorry, I was having dinner.
Did you work out why it wasn't working? (I think I know). Also, do you understand why the C2 data came out differently?
I accidently added a new column and that is why it states overflow.
 
Upvote 0
Unlikely.
So the reason it came up with an overflow is because it was trying to run the operations in the code I provided to you against cells C2:C6 in an entirely different sheet to the one you had intended to. This is why I had asked you for the name of the sheet. This way, we could properly qualify the cell reference not only to Range("C2:C6") but to, say, Sheets("MAIN").Range("C2:C6").
 
Upvote 0
I see. Thanks for this. It makes sense to me now. That is so kind of you to help me all this to understand better.
Best regards
V
 
Upvote 0
Hi again

There is one more thing I like to add on this matter in relation date format? Would that be okay to reply you on this please?

Best regards

V
 
Upvote 0
Sure. I assume you meant to ask here - it's best that others with similar issues/problems be able to benefit for seeing a working solution.
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top