Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
DateFormatter::toString Method (boost::gregorian::date&, std::string&)

Returns string with formatted date using specified format.

C++
static std::string toString(
    const boost::gregorian::date& dateModyyr, 
    const std::string& formatModyyr
);
Parameters 
Description 
const boost::gregorian::date& dateModyyr 
The month, day, and year date to format. 
const std::string& formatModyyr 
Format to use for month, day, and year dates. Use "s" to format as "mo/dy/year", with leading 0's if necessary. Use "n" to format as "modyyear", with leading 0's if necessary. Any other format will result in a format of "month day, year". 

A string with date using specified format.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!