Collapse All

Anypia Programmer's Documentation |  |

DateFormatter::toString Method (DateMoyr&, std::string&)
DateFormatter Class DateFormatter Members toString Method Send Feedback

Returns string with formatted date using specified format.

C++

    static std::string toString(
        const DateMoyr& dateMoyr,
        const std::string& formatMoyr
    );

Parameters

Parameters | Description
const DateMoyr& dateMoyr | The month and year date to format.
const std::string& formatMoyr | Format to use for month and year dates. Use "s" to format as "mo/year", with leading 0 if necessary. Use "n" to format as "moyear", with leading 0 if necessary. Any other format will result in a format of "month 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!