how to assign the first day of the next month

Hi everybody,
I am very new in shell and this is my first post :).
i am trying to write a script in which i want to decide some begin dates. this dates will be used by another shell scripts.
i would like to assign:
1- a variable which is a = sysdate
2- another variable b = the first day of the next month from sysdate

i want to have time in both, like sysdate is: 20080705 05:02:04,
and the first day of next month to be: 20080801 00:00:05

I appreciate a lot your kind help.
Regards.

....................................................

It's not allowed to bump up questions! Please read the rules.

hi,
how can i delete post? or the second part? seems no privileages for that, i wasn't able to delete this post also in order to make a new one.

Thanks for your kind help.

If you are using ksh93

$ printf "%(%Y%m%d %H:%M:%S)T\n" "now"
20080705 15:44:32
$ printf "%(%Y%m%d %H:%M:%S)T\n" "next month"
20080801 00:00:00
$

no i am using sh script, i would like to have this dates as variable which can be used by another scripts.
Thanks.

I am using sh script .
I would like to have this dates as variables to be able to use it in other by other scripts.