<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""></div><div class=""><br class=""></div><div class="">Alan</div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">##############################<br class="">Alan Brammer,<div class="">Post-Doc Researcher</div><div class=""><br class=""></div><div class="">Department of Atmospheric and&nbsp;Environmental Sciences,<br class="">University at Albany,&nbsp;State University of New&nbsp;York,&nbsp;Albany, NY, 12222<div class=""><a href="mailto:abrammer@albany.edu" class="">abrammer@albany.edu</a><br class="">##############################</div></div></div></span></div></div>
</div><div class=""><br class="webkit-block-placeholder"></div><div class=""><br class=""></div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 4 Apr 2016, at 13:59, Dave Allured - NOAA Affiliate &lt;<a href="mailto:dave.allured@noaa.gov" class="">dave.allured@noaa.gov</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Chang,<div class=""><br class=""></div><div class="">No, there is no such fuction in the current NCL function library.&nbsp; You could do this by parsing yyyymmdd into 3 integer parts, then call cd_inv_calendar, followed by cd_string.</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp;&nbsp;<a href="http://www.ncl.ucar.edu/Document/Functions/date.shtml" target="_blank" class="">http://www.ncl.ucar.edu/Document/Functions/date.shtml</a></div><div class=""><br class=""></div><div class="">However, that is more complicated than necessary, and there are side issues.&nbsp; I recommend writing your own function; it should be quite easy.&nbsp; You will still need to parse yyyymmdd into 3 parts.&nbsp; Use sprinti ("%2.2i", dd) to make the day number into a 2-digit string.</div><div class=""><br class=""></div><div class="">--Dave</div><div class=""><br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Apr 4, 2016 at 10:38 AM, Xi Chang <span dir="ltr" class="">&lt;<a href="mailto:xi.chang01@gmail.com" target="_blank" class="">xi.chang01@gmail.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">Hi NCL,<br class=""><br class=""></div>is there any a function that is able to convert the calender date with format<br class=""></div>yyyymmdd to dd-month-yyyy? where month is e.g., Jan, Feb etc.<br class=""><br class=""></div>Thank you<span class=""><font color="#888888" class=""><br class=""><br class=""></font></span></div><span class=""><font color="#888888" class="">Chang..<br class=""></font></span></div></blockquote></div></div></div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></body></html>