Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Kenneth Crocker
1:50 AM > To: Potla, Ashish Bassaliel > Cc: rt Users > Subject: Re: [rt-users] Scrip help needed on date formatting > > Ashish, > > > Tried that. No joy. > > > Kenn > LBNL > > On 3/3/2009 11:40 AM, Potla, Ashish Bassaliel wrote: >> Hey

Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Kenneth Crocker
ocker [kfcroc...@lbl.gov] > Sent: Wednesday, March 04, 2009 1:50 AM > To: Potla, Ashish Bassaliel > Cc: rt Users > Subject: Re: [rt-users] Scrip help needed on date formatting > > Ashish, > > > Tried that. No joy. > > > Kenn > LBNL > > On 3/3/

Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Potla, Ashish Bassaliel
-users] Scrip help needed on date formatting Ashish, Tried that. No joy. Kenn LBNL On 3/3/2009 11:40 AM, Potla, Ashish Bassaliel wrote: > Hey Ken, > localize the variables as follows and try it out : > > my ( undef, undef, undef, $day, $mon, $year ) = localtime( time ); &g

Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Kenneth Crocker
Ashish, Tried that. No joy. Kenn LBNL On 3/3/2009 11:40 AM, Potla, Ashish Bassaliel wrote: > Hey Ken, > localize the variables as follows and try it out : > > my ( undef, undef, undef, $day, $mon, $year ) = localtime( time ); > my $cf_value = sprintf( '%d/%02d/%02d', $year + 1900, $mo

Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Kenneth Crocker
Ashish, Just "Enter one value". That's it. No validation settings. Although I've thought about using "(?#Date /mm/dd)^(([1-2][0-9][0-9][0-9])\/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1]))?$" as a validation setting. Kenn LBNL On 3/3/2009 11:21 AM, Potla, Ashish Bassaliel wrote:

Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Potla, Ashish Bassaliel
Hey Ken, localize the variables as follows and try it out : my ( undef, undef, undef, $day, $mon, $year ) = localtime( time ); my $cf_value = sprintf( '%d/%02d/%02d', $year + 1900, $mon, $day ); -Ashish From: rt-users-boun...@lists.bestpractical.com [rt-u

Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Potla, Ashish Bassaliel
Hi, Can you give some info about the CF you are using? What is the type and validation settings on it? -Ashish From: rt-users-boun...@lists.bestpractical.com [rt-users-boun...@lists.bestpractical.com] On Behalf Of Kenneth Crocker [kfcroc...@lbl.gov] Sent: