<?xml version="1.0" encoding="windows-1252"?>
<node id="821125" title="Re: Convert Date formats" created="2010-02-03 06:10:36" updated="2010-02-03 06:10:36">
<type id="11">
note</type>
<author id="600591">
Krambambuli</author>
<data>
<field name="doctext">
If you want to stay with Date::Manip, you'll have to feed the parser with a valid date: 'NOV-07' is not a date, but a month (there is no day specified).&lt;br&gt;&lt;br&gt;

Taking care of that, the following code works:&lt;br&gt;
&lt;code&gt;
#!/usr/bin/perl

use strict;
use warnings;

use Date::Manip;

my $thingy = 'NOV-2007';
my $date = UnixDate( ParseDate( "1-$thingy" ), '%Y/%m' );

print "$date\n";
&lt;/code&gt;

Good luck,&lt;br&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-600591"&gt;
&lt;br&gt;Krambambuli&lt;br&gt;
---&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
821109</field>
<field name="parent_node">
821109</field>
</data>
</node>
