From: Блажнов В. <vbl...@ya...> - 2012-06-08 06:20:39
|
<div>Thank You, I did so too and then I used string captures to get day, month and year values:</div><div>str = dt:Format("%m/%d/%Y")</div><div>month, day, year = string.match(str, "(%d+)/(%d+)/(%d+)")</div><div> </div><div>07.06.2012, 22:11, "Milind Gupta" <mil...@gm...>:</div><blockquote type="cite">Hi,<div> Currently I use the Format method to get the string and extract it from there: currDate:Format("%m/%d/%Y")</div><div>Regards,</div><div>Milind<br /><br /><div>On Thu, Jun 7, 2012 at 2:18 AM, Блажнов Валерий <span dir="ltr"><<a href="mailto:vbl...@ya..." target="_blank">vbl...@ya...</a>></span> wrote:<br /><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid #cccccc;padding-left:1ex;"><br /> <br /> 07.06.2012, 08:19, "John Labenski" <<a href="mailto:jla...@gm...">jla...@gm...</a>>:<br /><div>> On Tue, Jun 5, 2012 at 10:46 AM, Блажнов Валерий <<a href="mailto:vbl...@ya...">vbl...@ya...</a>> wrote:<br /> ><br /> >> There are no wxWidgets GetDay(), GetMonth(), GetYear() methods in wxLua wxDateTime. How to get day, month and year values from wxDateTime object?<br /> ><br /> > Oops, there are now in the SVN development version.<br /> ><br /> > I would like to make a release in the next couple weeks.<br /> ><br /> > Regards,<br /> > John<br /> ></div>Thank You,<br /> Please, don't forget to add Today() method too )<br /><div><div><br /> ------------------------------------------------------------------------------<br /> Live Security Virtual Conference<br /> Exclusive live event will cover all the ways today's security and<br /> threat landscape has changed and how IT managers can respond. Discussions<br /> will include endpoint security, mobile security and the latest in malware<br /> threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br /> _______________________________________________<br /> wxlua-users mailing list<br /> <a href="mailto:wxl...@li...">wxl...@li...</a><br /> <a href="https://lists.sourceforge.net/lists/listinfo/wxlua-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/wxlua-users</a></div></div></blockquote></div></div><p>------------------------------------------------------------------------------<br />Live Security Virtual Conference<br />Exclusive live event will cover all the ways today's security and <br />threat landscape has changed and how IT managers can respond. Discussions <br />will include endpoint security, mobile security and the latest in malware <br />threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a></p><p>_______________________________________________<br />wxlua-users mailing list<br /><a href="mailto:wxl...@li...">wxl...@li...</a><br /><a href="https://lists.sourceforge.net/lists/listinfo/wxlua-users">https://lists.sourceforge.net/lists/listinfo/wxlua-users</a></p></blockquote> |