Re: converting QuantLib date back to mm/dd/yyyy

Posted by Piter Dias-4 on
URL: http://quantlib.414.s1.nabble.com/converting-QuantLib-date-back-to-mm-dd-yyyy-tp13961p13975.html

You may try io::short_date(date) at date.hpp.

 

On 2013-01-29 21:53, Pavan Shah wrote:

does anyone have a suggestion?
thanks
Pavan


On Tue, Jan 29, 2013 at 8:08 AM, Pavan Shah <[hidden email]> wrote:
hello,
I am trying to output dates into a csv file in one cell .  However, right now they are being output as  June 22nd       2012   in two different cells.
 
I just used the ofstream object to ouput (nothing fancy).
 
How can I convert a QuantLib date into mm/dd/yyyy and ensure that it is output in one cell?
 
thanks
Pavan

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

 

-- 
________________________ Piter Dias [hidden email] www.piterdias.com

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users