View previous topic :: View next topic
|
Author |
Message |
Julie Maquirang
New User
Joined: 07 Jan 2009 Posts: 20 Location: Philippines
|
|
|
|
Hi,
Does anybody knows how to get result from arithmetic operation with leading zeroes
I am getting the current date with Julian date format
when I subtract 1 from my variable(julian date)
CDATE = 09061
CDATEB=CDATE-1
result:
CDATE=9060 |
|
Back to top |
|
|
Julie Maquirang
New User
Joined: 07 Jan 2009 Posts: 20 Location: Philippines
|
|
|
|
Correction:
result:
CDATEB=9060 |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Use the RIGHT function.
Code: |
CDATEB = RIGHT((CDATE-1),5,'0') |
Garry. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
what happens when julian date is equal to 09001 ?
Gerry |
|
Back to top |
|
|
Julie Maquirang
New User
Joined: 07 Jan 2009 Posts: 20 Location: Philippines
|
|
|
|
Hi Gerry,
Thanks!! |
|
Back to top |
|
|
Julie Maquirang
New User
Joined: 07 Jan 2009 Posts: 20 Location: Philippines
|
|
|
|
I haven't tried yet... =) |
|
Back to top |
|
|
|