MonthToNumeric.sh is a Bourne shell script that takes a three-letter month name and returns the numeric value of the month. The first character of the month name must be upper-case, while the rest of the character must be lower-case. If MonthToNumeric.sh does not recognize the month specified, it will return the value '99'.
MonthToNumeric.sh is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.
MonthToNumeric.sh [ -p ] "Month in Three Letters"
: MonthToNumeric.sh Jan
I have decided to make "MonthToNumeric.sh" more robust than before. The new version I attached below is now case-insensitive to your input. In addition, the month can be fully spelled out or limited to three characters as before.
This new version of the "MonthToNumeric.sh" script takes advantage of the following shell scripts, which are also available on this site. So to use the this script, you will need to download these other scripts if you don't already have them.
MonthToNumeric.sh [ -p ] "Month in Three or More Letters"
: MonthToNumeric.sh January
Did your message disappear? Read the Forums FAQ.
TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
Title: Number To Month String (GPL)
Spam Control | * indicates required field
Messages, files, and images copyright by respective owners.
53 Users Online
Copyright © 1996 - 2018. All Rights Reserved.