<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I sent a function I wrote to do this kind of parsing to Mary yesterday. &nbsp;Had dropped you off the reply though. &nbsp;</div><div>This could replace the multiple lines of string parsing you have with a single function.&nbsp;</div><div>I’ve used this function fairly extensively and haven’t run into any issues recently. &nbsp;</div><div><br class=""></div><div>Save the attached .ncl file somewhere on your system and use the load statement at the top of the script.</div><div>e.g.&nbsp;</div><div><br class=""></div><div>load “./cd_inv_string.ncl”</div><div><br class=""></div><div>time = "10/05/2014 06:00:00"<br class="">time_format = "%N/%D/%Y %H:%M:%S” &nbsp; ;;; same codes as cd_string&nbsp;<br class="">time_format@units =&nbsp;"minutes since 2014-10-05 06:00:00”<br class=""><font color="#5856d6" class=""><br class=""></font><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="">date = cd_inv_string(time, time_format)</div></div></div><div><br class=""></div><div>print(cd_calendar(date,0)) &nbsp;; check that it actually worked properly</div><div><br class=""></div><div><br class=""></div><div>Good luck,&nbsp;</div><div>Alan.&nbsp;</div><div><br class=""></div><div>p.s. I’m not an NCL developer and can not support functions in any official manner. &nbsp;This should work but your luck with it may be different.&nbsp;</div><div><br class=""></div><div><br class=""></div><div></div></body></html>