dbTalk Databases Forums  

Format Function

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Format Function in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Daniela Menneweger
 
Posts: n/a

Default Format Function - 12-10-2003 , 03:06 AM






Hello NG,

how come that the format function does not work in Active-X-Script???

Format(date(),"ww")

What can I use instead of the format function???
Thanks for helping.

Daniela



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Format Function - 12-10-2003 , 05:25 AM






what do you want to show.?

Do you really want FormatDateTime()

http://www.w3schools.com/vbscript/fu...atdatetime.asp

--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Daniela Menneweger" <nospam (AT) hotmail (DOT) com> wrote

Quote:
Hello NG,

how come that the format function does not work in Active-X-Script???

Format(date(),"ww")

What can I use instead of the format function???
Thanks for helping.

Daniela





Reply With Quote
  #3  
Old   
Daniela Menneweger
 
Posts: n/a

Default Re: Format Function - 12-10-2003 , 07:24 AM



Hi Allan,

I want to show the week, or day of week, quarter,.... of a date. I didn't
find a way to get it back with another function.

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:#EPrQAxvDHA.2408 (AT) tk2msftngp13 (DOT) phx.gbl...
Quote:
what do you want to show.?

Do you really want FormatDateTime()

http://www.w3schools.com/vbscript/fu...atdatetime.asp

--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Daniela Menneweger" <nospam (AT) hotmail (DOT) com> wrote in message
news:uuzpP0vvDHA.1744 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Hello NG,

how come that the format function does not work in Active-X-Script???

Format(date(),"ww")

What can I use instead of the format function???
Thanks for helping.

Daniela







Reply With Quote
  #4  
Old   
Darren Green
 
Posts: n/a

Default Re: Format Function - 12-10-2003 , 03:56 PM



In article <#jHGVEyvDHA.2712 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, Daniela Menneweger
<nospam (AT) hotmail (DOT) com> writes
Quote:
Hi Allan,

I want to show the week, or day of week, quarter,.... of a date. I didn't
find a way to get it back with another function.

Format is not a VBScript function, just VB.

VBScript does have other functions (as does VB), such as Weekday, Month
and similar.

http://msdn.microsoft.com/library/de...en-us/script56
/html/vtoriFunctions.asp


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.