trying to use std::get_time to parse YYMMDD and failing
<p>I'm trying to do this and failing:</p>

<pre><code>std::istringstream ss("1212");
ss &gt;&gt; std::get_time(&amp;t, "%y%m");
if (ss.fail()) // every time!
</code></pre>

<p>this works ok:</p>

<pre><code>std::istringstream ss("12-12");
ss &gt;&gt; std::get_time(&amp;t, "%y-%m");
</code></pre>

<p>Any ideas what i'm doing wrong? what can i use otherwise as windows doesnt appear to have a srtptime</p>

<p>windows/vs13
TIA</p>