Murach's C++ 2008
How to work with dates and strings

First, this chapter shows you how to use the properties and methods of the DateTime structure to work with dates and times. Then, it shows you how to use the properties and methods of the String and StringBuilder classes to manipulate the data in strings, to validate user entries, and to format numbers, dates, and times.

Chapter 9 How to work with dates and strings
How to work with dates and times 240
How to create a DateTime value 240
How to get the current date and time 242
How to format DateTime values 242
How to get information about dates and times 244
How to perform operations on dates and times 246
How to work with strings 248
The properties and methods of the String class 248
Code examples that work with strings 250
More code examples that work with strings 252
Two methods for validating user entries 254
How to use the StringBuilder class 256
How to format numbers, dates, and times 258
How to format numbers 258
How to format dates and times 260




Murach's C++ 2008

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.