Sandeep Shinagare wrote:
>
> Hi All,
> I am trying to find the date, month and year of the next Monday given any
> day.
> I am using this to get todays date/day/month etc. Is there a way to use
> this
> information to get the next Monday?
>
> #snip-start
> $thisday=(Sun,Mon,Tue,Wed,Thu,Fri,Sat
At 05:06 PM 12/6/01 +, Shinagare, Sandeep wrote:
>Hi All,
>I am trying to find the date, month and year of the next Monday given any
>day.
>I am using this to get todays date/day/month etc. Is there a way to use
>this
>information to get the next Monday?
>
>#snip-start
> $thisday=(Sun,Mon,Tu
By using day of the week out of locatime, you should be able to determine how
many days you need to add to get to Monday.
Example: Thu is 4 and Mon is 1. So if always looking for the next Monday, then
you can do something like:
my ($sec,$min,$hour,$mday,$mon,$year,$wday) = l