Subject | Re: [firebird-support] date in ccyymmdd format inside procedure |
---|---|
Author | Milan Babuskov |
Post date | 2008-11-13T15:24:38Z |
Rick Roen wrote:
library that allows you to convert dates to varchar using the format you
want. You would use something like: DateToStr(date1, '%Y%m%d')
http://rfunc.sourceforge.net
HTH
--
Milan Babuskov
http://www.flamerobin.org
http://www.guacosoft.com
> Inside a procedure, I would like to take a date value and convert to aBetter? Probably not. But there's easier way. There's an UDF in rFunc
> string like "CCYYMMDD", i.e. "20081101". I know I can pull the date
> apart with Extract and then pad the single digit month and day values,
> but is there a better way?
library that allows you to convert dates to varchar using the format you
want. You would use something like: DateToStr(date1, '%Y%m%d')
http://rfunc.sourceforge.net
HTH
--
Milan Babuskov
http://www.flamerobin.org
http://www.guacosoft.com