Re: dates in quantlib

Posted by Pavan Shah-2 on
URL: http://quantlib.414.s1.nabble.com/dates-in-quantlib-tp13795p13798.html

thank you both very much

I converted using the QuantLib DateParser class.

it works.

Pavan

On Tue, Dec 11, 2012 at 8:48 AM, Luigi Ballabio <[hidden email]> wrote:
You can use the DateParser class in <ql/utilities/dataparsers.hpp>.
For your particolar format,

Date d = DateParser::parseISO(str);

will work.

Luigi


On Tue, Dec 11, 2012 at 5:21 PM, Pavan Shah <[hidden email]> wrote:
> Hello all,
>
>  if I have a date in string format such as  "2012-06-25",  how do I convert
>  that into a date that QuantLib understands?
>
>
> Just so we are clear, in this example, 06 = month and 25 = day .
>
> I have to do this conversion on a vector of strings.
>
>  thanks
>  Pavan
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users