Excel 2010 - Date/Time Formatting - Question About Symbols Used in Formatting.

I thought I knew all about date/time formatting but then I saw this:
"[$-409]m/d/yy h:mm AM/PM;@"

What does the [$-409] mean?
Why is it in square brackets?
What does the @ symbol mean?
brothertruffle880Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
I think that both of them are meaningless since m/d/yy h:mm AM/PM gives the same results.
0
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
[$-409] is used as the country's locate id set by Microsoft. And [$-409] represents USA.
For more info http://dailydoseofexcel.com/archives/2006/02/27/months-of-the-world/
And @ is normally used for text strings.
2
brothertruffle880Author Commented:
What's the significance of the semi-colon and the @ sign next to it?
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Custom number formatting has four segments for positive number, negative number, zero and text. And each one is separated by a semi-colon.
PositiveNumber;NegativeNumber;Zero;Text

To read more about custom number formatting, please go through the following link...
https://www.ablebits.com/office-addins-blog/2016/07/07/custom-excel-number-format/
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brothertruffle880Author Commented:
What is the significance of the semi-colon and the @ sign next to it?
0
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Nothing specifically if you input a date time stamp in the cell with that custom format. You may remove the ;@ from the custom format string and that won't have any effect on the formatting of the date/time. As I already said that @ is used for text so in this case you may input either a date/time stamp or a string in the cell.
1
Martin LissOlder than dirtCommented:
Here's a Microsoft article that explains it. The article doesn't explicitly say so, but dates are considered numbers. In the case of your format statement the @ is the format to be used for positive numbers. @ essentially means "display it as is" so it's not needed,
1
brothertruffle880Author Commented:
Thanks to all for your valued assistance.  You made my life easier!
0
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome!
0
Martin LissOlder than dirtCommented:
You’re welcome and I’m glad I was able to help.

If you expand the “Full Biography” section of my profile you’ll find links to some articles I’ve written that may interest you.

Marty - Microsoft MVP 2009 to 2017
              Experts Exchange Most Valuable Expert (MVE) 2015, 2017
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2017
              Experts Exchange Top Expert VBA (current)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.