Thank You, I did so too and then I used string captures to get day, month and year values:
str = dt:Format("%m/%d/%Y")
month, day, year = string.match(str, "(%d+)/(%d+)/(%d+)")
 
07.06.2012, 22:11, "Milind Gupta" <milind.gu...@gmail.com>:
Hi,
          Currently I use the Format method to get the string and extract it from there: currDate:Format("%m/%d/%Y")
Regards,
Milind

On Thu, Jun 7, 2012 at 2:18 AM, Блажнов Валерий <vblazh...@yandex.ru> wrote:


07.06.2012, 08:19, "John Labenski" <jlaben...@gmail.com>:
> On Tue, Jun 5, 2012 at 10:46 AM, Блажнов Валерий <vblazh...@yandex.ru> wrote:
>
>>  There are no wxWidgets GetDay(), GetMonth(), GetYear() methods in wxLua wxDateTime. How to get day, month and year values from wxDateTime object?
>
> Oops, there are now in the SVN development version.
>
> I would like to make a release in the next couple weeks.
>
> Regards,
>     John
>
Thank You,
Please, don't forget to add Today() method too )

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to