Excel Format changing automatically after 12Days of Dates

Rampage598

New Member
Joined
Mar 11, 2022
Messages
23
Office Version
  1. 365
Platform
  1. Windows
1647427166659.png

I am trying to print the dates from 1 march to 16 march it's giving me properly dates till 12 march in "MM-dd-yyyy" format but after 12th of march its giving me wrong format....
I tried to remove the time manually but its giving me in the format of "dd-MM-yyyy" actually i want all the dates from 1 march to 16march in the form of "MM-dd-yyyy"

Is there any macro code to delete all the time after 12th march?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
View attachment 60188
I am trying to print the dates from 1 march to 16 march it's giving me properly dates till 12 march in "MM-dd-yyyy" format but after 12th of march its giving me wrong format....
I tried to remove the time manually but its giving me in the format of "dd-MM-yyyy" actually i want all the dates from 1 march to 16march in the form of "MM-dd-yyyy"

Is there any macro code to delete all the time after 12th march?
how is that data entered into the cells? have you reformatted the cell itself?
 
Upvote 0
how is that data entered into the cells? have you reformatted the cell itself?
Actually i am doing automation in Power automate....
This is my Input Excel sheet i am reading this entire data
1647427836666.png

and writing into the another excel sheet, in that i am using macro to change the format of this data to "MM-dd-yyyy"
 
Upvote 0
your post#3 said you are using a macro to change the date but now you say there is no code??
please be specific about what you are/are not doing and on which platforms. Are you trying to manipulate the date in excel or after exporting to automate
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,171
Members
452,615
Latest member
bogeys2birdies

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