lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I guess as part of that, I’ll be wanting to convert yyyy-mm-dd into a table, like:

Year=yyyy

Month=mm

Day=dd

 

Is there a generic “split string into table with delimiter” method?

 

 

Dave Collins

Front-End Engineer

Mercatus Technologies Inc.
60 Adelaide Street East, Suite 700
Toronto ON M5C 3E4
T  416 603 3406 x 298
F  416 603 1790

 

dave.collins@mercatustechnologies.com

www.mercatustechnologies.com

 

From: Dave Collins
Sent: Tuesday, June 14, 2011 10:37 AM
To: 'lua-l@lists.lua.org'
Subject: day-of-week algorithm

 

My API delivers dates in the form yyyy-mm-dd but my design team wants DDD dd (i.e. Tue 14).

 

Can anyone point me at a reliable algorithm for calculating day-of-week from a standard datestamp?

 

Dave Collins

Front-End Engineer

Mercatus Technologies Inc.
60 Adelaide Street East, Suite 700
Toronto ON M5C 3E4
T  416 603 3406 x 298
F  416 603 1790

 

dave.collins@mercatustechnologies.com

www.mercatustechnologies.com