So, that's the well known Year2029 Bug.
Oh. I see. It will even repeat from now on in ten years, every day.
(Not like the Year 2000-Bug.)
But anyways, you don't write what you are trying to do,
so here comes some general advice.
And I don't know, which level you are in programming,
so my 2 cents are even more unspecified.
I'd try to accomplish things as simple as possible.
Reading your question, I immediately thought of a regex,
next thought was grep/map.
If you know these tools, you can accomplish much more
than only changing the digits of a date.
And even when you decide other, (hopefully)
and use the date in another format,
you've learned something valuable.
Best wishes, Michael
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|