I was talking with my dad last night, when Dater formatting came up. He show me a cool little math trick to re-arrange a date
assume you have a date string 20060506
and you want to make it 05062006
not too challanging with todays tools. but how'd those guys get 'er done in the old days?
20060506 * 10000.0001 == 200605062006.0506 do some truncations and Presto! you've got re-organized digits!
thx for the neet ole' trick Pops!
It's amazing what people will come up with when there toolset doesn't always do the job. This reminds me of the Getting Real philosophy. If you give someone just enough to accomplish their task, they'll find imaginative ways to do it.
heathbits - heath's portfoliohoopla - danger's blog
Recommend me on Working With Rails
resume website
portfolio website