Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Dear Experts,I need function to say wether next month 15th is a working day or not?one more function converts Rupees to Words.........ex: 4562.22...............the output should be like thisfour thousend five hundred and sixty two rupees and twenty two paisaplease guide me in this regardthank you very muchVinod
khtan
In (Som, Ni, Yak)
17689 Posts
Posted - 2007-05-02 : 03:40:26
This will give you 15th of next month's weekday's name. (Mon, Tue etc).
"converts Rupees to Words"If not mistaken there is one in the Script Library. Search for it there.KH
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts
Posted - 2007-05-02 : 03:46:19
For determining whether next month's 15th is working day or not, you will need a table that lists holiday dates for the year in addition to KH's code.Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED"
sunsanvin
Master Smack Fu Yak Hacker
1274 Posts
Posted - 2007-05-02 : 04:24:31
if the day is saturday or sunday, then that should be a holiday ro else working day.....I'm trying with caseVinod
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts
Posted - 2007-05-02 : 06:01:51
quote:Originally posted by sunsanvin if the day is saturday or sunday, then that should be a holiday ro else working day.....I'm trying with caseVinod
And what about public holidays?Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED"