Collapse All

Anypia Programmer's Documentation |  |

DateFormatter::toString Method (boost::gregorian::date&, std::string&)
DateFormatter Class DateFormatter Members toString Method Send Feedback

Returns string with formatted date using specified format.

C++

    static std::string toString(
        const boost::gregorian::date& dateModyyr,
        const std::string& formatModyyr
    );

Parameters

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".

Returns

A string with date using specified format.

Group

toString Method

Links
DateFormatter Class, DateFormatter Members, toString Method

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