Live Chat Icon For mobile
Live Chat Icon

How do I format numbers, dates and currencies in a TextBox

Platform: WinForms| Category: TextBox

Each type has a ToString method that can be used to accomplished formatting. Also, you can use the String.Format method to format things as well. To format dates, use the ToString member of DateTime. You may want to use the InvariantInfo setting (see below) to get culture-independent strings.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.