Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Class template date_formatter

boost::date_time::date_formatter — Convert a date to string using format policies.


template<typename date_type, typename format_type, typename charT = char> 
class date_formatter {
// types
typedef std::basic_string< charT > string_type;

// public static functions
static string_type date_to_string(date_type) ;
static std::string date_to_string(date_type) ;


date_formatter public static functions

  1. static string_type date_to_string(date_type d) ;
  2. static std::string date_to_string(date_type d) ;
Copyright 2001-2005 CrystalClear Software, Inc