Date format independent from regional settings

Assamita

Board Regular
Joined
Sep 23, 2011
Messages
131
Hi guys,
I have a file that is shared with several people. Some of them have Spanish regional settings, and some of them English (I don't think there's anything else than those two).
The thing is that the file has a date column, and I have a format "mm - aaaa" which for those who have it in spanish, displays as "03 - 2019", but for those who have it in english, displays as "03 - aaaa". They would require to have it as "mm - yyyy", but then the ones with Spanish wouldn't see it properly.

Is there a way to format a date, independently of the regional settings of the viewer?

Thank you
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi,

There are several possibilities ... for example:

Code:
yourvariable[COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#303336][FONT=inherit]=[/FONT][/COLOR][COLOR=#303336][FONT=inherit] VBA[/FONT][/COLOR][COLOR=#303336][FONT=inherit].[/FONT][/COLOR][COLOR=#303336][FONT=inherit]Format[/FONT][/COLOR][COLOR=#303336][FONT=inherit]$([/FONT][/COLOR][COLOR=#303336][FONT=inherit]Value[/FONT][/COLOR][COLOR=#303336][FONT=inherit],[/FONT][/COLOR][COLOR=#303336][FONT=inherit] strFormat[/FONT][/COLOR][COLOR=#303336][FONT=inherit])[/FONT][/COLOR]

and define strFormat as your ' constant ' format ...

Hope this will help
 
Upvote 0
Yes ... it can be done with a Formula ...

Code:
=TEXT(TODAY(),"[$-809]mmmm yyyy")
 
Upvote 0
Well, that's actually what I have:
Code:
=TEXT([@Date];"[$-409]aaaa - mm")
but I need to use aaaa - mm because my regional setting is for Spain. And if someone else with a different regional setting opens the file, all they see is "aaaa - 03", instead of "2019 - 03" like I do. It has to do with each person's regional configuration.
 
Upvote 0
409 is for English (U.S.) and 0C0A is for Spanish ...
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,194
Members
452,616
Latest member
intern444

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