Site Menu
- Home
- Products
- Downloads
- Documentation
- Support
- Pricing & Orders
- About
- Community
- My Nexus
- Recently Updated ...
- Search...
- Site Login
Search
getVarDatum - return first day of a month and year as date
0
drop function if exists getVarDatum;
create function getVarDatum
(
aYear integer,
aMonth integer
)
returns date
begin
declare date_string varchar(10);
set date_string = cast(aYear as char(4)) || '-' ||
case
when aMonth < 10 then '0'||cast(aMonth as char(1))
else
cast(aMonth as char(2))
end || '-' || '01';
return cast(date_string as date);
end;
Category:
SQL Functions & Procedures
Current Version:
1.00
Supported Products:
NexusDB V2
NexusDB V3
Questions? Problems?
- Interested to buy but something put you off?
- Can't find what you're looking for?
- Have a suggestion?
Let us know. If you're having trouble contacting us, please check here.
Site Updates
- May 7 2013 - 10:16pm
- May 7 2013 - 10:10pm
- May 7 2013 - 10:03pm
- May 2 2013 - 12:06am
- Apr 17 2013 - 11:40am












