Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'What do you do during the first 10 days of the month?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
What do you do during the first 10 days of the month?
Authored by: OctavianMH on Aug 05, '02 11:00:15AM

This script is great, I love it, but how does one insert a '0' in front of the day when it's less than 10?

I assume it's something like this..

if ($theDate < 10) $theDate = `echo 0; $theDate`

but it seems that 'echo 0' also inserts a carriage return, which is bad. And I don't know if that's the right syntax for concatinating strings.

Any help would be appreciated!

Thanks



[ Reply to This | # ]
What do you do during the first 10 days of the month?
Authored by: meneermoot on Aug 07, '04 06:28:26AM

Posted a reply in the main thread showing how to do what you want.

http://www.macosxhints.com/comment.php?mode=display&sid=20020724090011111&title=Easier+is+relative&type=article&order=&pid=9936

Cheers
Mark

---
Mark Berger
Wellington, New Zealand



[ Reply to This | # ]