473,588 Members | 2,527 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting WorkWeek Values?

M P
I can easily get the current date by using Date(), how about WorkWeek?

Mark
Jul 19 '05 #1
11 3178
What is a "work week"?

Cheers
Ken
"M P" <ma**@textguru. ph> wrote in message
news:uV******** ******@tk2msftn gp13.phx.gbl...
: I can easily get the current date by using Date(), how about WorkWeek?
:
: Mark
:
:
Jul 19 '05 #2
M P
workweek calendar. Like 2004, we have 53 work weeks.
"Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
news:#T******** *****@TK2MSFTNG P10.phx.gbl...
What is a "work week"?

Cheers
Ken
"M P" <ma**@textguru. ph> wrote in message
news:uV******** ******@tk2msftn gp13.phx.gbl...
: I can easily get the current date by using Date(), how about WorkWeek?
:
: Mark
:
:

Jul 19 '05 #3
What is the difference between a "work week", and a "week"?
What about partial weeks? (eg if 1st January 2004 is a Thursday?)

Cheers
Ken
"M P" <ma**@textguru. ph> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
: workweek calendar. Like 2004, we have 53 work weeks.
:
:
: "Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
: news:#T******** *****@TK2MSFTNG P10.phx.gbl...
: > What is a "work week"?
: >
: > Cheers
: > Ken
: >
: >
: > "M P" <ma**@textguru. ph> wrote in message
: > news:uV******** ******@tk2msftn gp13.phx.gbl...
: > : I can easily get the current date by using Date(), how about WorkWeek?
: > :
: > : Mark
: > :
: > :
: >
: >
:
:
Jul 19 '05 #4
M P
You don't get what I mean.
Ex. Today is 06-Jul-2004 under WorkWeek 28, for next week its Work Week 29,
and so on...

What I mean with workweek is the work week calendar.
"Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
news:eG******** *****@tk2msftng p13.phx.gbl...
What is the difference between a "work week", and a "week"?
What about partial weeks? (eg if 1st January 2004 is a Thursday?)

Cheers
Ken
"M P" <ma**@textguru. ph> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
: workweek calendar. Like 2004, we have 53 work weeks.
:
:
: "Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
: news:#T******** *****@TK2MSFTNG P10.phx.gbl...
: > What is a "work week"?
: >
: > Cheers
: > Ken
: >
: >
: > "M P" <ma**@textguru. ph> wrote in message
: > news:uV******** ******@tk2msftn gp13.phx.gbl...
: > : I can easily get the current date by using Date(), how about WorkWeek? : > :
: > : Mark
: > :
: > :
: >
: >
:
:

Jul 19 '05 #5
"M P" <ma**@textguru. ph> wrote in message
news:Oo******** ******@TK2MSFTN GP09.phx.gbl...
You don't get what I mean.
Ex. Today is 06-Jul-2004 under WorkWeek 28, for next week its Work Week 29, and so on...


Enter this in the IE Address line and press Enter:

vbscript:DatePa rt("ww",Date() )

vbscript:DatePa rt("ww",#12/31/2004#)
Jul 19 '05 #6
"McKirahan" <Ne**@McKirahan .com> wrote in message news:<6evGc.311 93$a24.28857@at tbi_s03>...
"M P" <ma**@textguru. ph> wrote in message
news:Oo******** ******@TK2MSFTN GP09.phx.gbl...
You don't get what I mean.
Ex. Today is 06-Jul-2004 under WorkWeek 28, for next week its Work Week

29,
and so on...


Enter this in the IE Address line and press Enter:

vbscript:DatePa rt("ww",Date() )

vbscript:DatePa rt("ww",#12/31/2004#)


Holy cow. never knew ie would do that.
Jul 19 '05 #7
Larry Bud wrote:

Enter this in the IE Address line and press Enter:

vbscript:DatePa rt("ww",Date() )

vbscript:DatePa rt("ww",#12/31/2004#)


Holy cow. never knew ie would do that.


VBScript or scripting from the location bar? By my observation, all
script-enabled browsers allow some amount of location bar scripting. I
noticed something rather interesting, though:

--- FireFox 0.9.1 and Mozilla 1.7 ---
javascript:aler t(123) Success
jscript:alert(1 23) Nothing
ecmascript:aler t(123) Nothing
vbscript:alert( 123) Redirect to http://www.vbscript.com/home/

--- IE6 ---
javascript:aler t(123) Success
jscript:alert(1 23) Location changes to vbscript:alert( 123)
ecmascript:aler t(123) Location changes to javascript:aler t(123)
vbscript:alert( 123) Success

--- Opera 7.23 ---
javascript:aler t(123) Success
jscript:alert(1 23) Error: Unsupported
ecmascript:aler t(123) Error: Unsupported
vbscript:alert( 123) Error: Unsupported

Why on Earth would jscript: change to vbscript: ?

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #8
M P
Thanks McKirahan!

"McKirahan" <Ne**@McKirahan .com> wrote in message
news:6evGc.3119 3$a24.28857@att bi_s03...
"M P" <ma**@textguru. ph> wrote in message
news:Oo******** ******@TK2MSFTN GP09.phx.gbl...
You don't get what I mean.
Ex. Today is 06-Jul-2004 under WorkWeek 28, for next week its Work Week

29,
and so on...


Enter this in the IE Address line and press Enter:

vbscript:DatePa rt("ww",Date() )

vbscript:DatePa rt("ww",#12/31/2004#)

Jul 19 '05 #9
....no, you don't get what I mean. What the hell is a "work week"? Is there a
definition, or it is just something you made up? Or is it just the week of
the year? And if it's just the week of the year, how do you classify partial
weeks?

Cheers
Ken
"M P" <ma**@textguru. ph> wrote in message
news:Oo******** ******@TK2MSFTN GP09.phx.gbl...
: You don't get what I mean.
: Ex. Today is 06-Jul-2004 under WorkWeek 28, for next week its Work Week
29,
: and so on...
:
: What I mean with workweek is the work week calendar.
: "Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
: news:eG******** *****@tk2msftng p13.phx.gbl...
: > What is the difference between a "work week", and a "week"?
: > What about partial weeks? (eg if 1st January 2004 is a Thursday?)
: >
: > Cheers
: > Ken
: >
: >
: > "M P" <ma**@textguru. ph> wrote in message
: > news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
: > : workweek calendar. Like 2004, we have 53 work weeks.
: > :
: > :
: > : "Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
: > : news:#T******** *****@TK2MSFTNG P10.phx.gbl...
: > : > What is a "work week"?
: > : >
: > : > Cheers
: > : > Ken
: > : >
: > : >
: > : > "M P" <ma**@textguru. ph> wrote in message
: > : > news:uV******** ******@tk2msftn gp13.phx.gbl...
: > : > : I can easily get the current date by using Date(), how about
: WorkWeek?
: > : > :
: > : > : Mark
: > : > :
: > : > :
: > : >
: > : >
: > :
: > :
: >
: >
:
:
Jul 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3387
by: WIWA | last post by:
Hello, I have written a program that gets information from Active Directory. This is the function I'm using: void ADSysGetUserName(IADsADSystemInfo * pSys, char * data) { HRESULT hr; BSTR bstr; hr = pSys->get_UserName(&bstr); if (SUCCEEDED(hr)) {
37
2438
by: MLH | last post by:
For example: Nz(,0) returns "300" if the value in field is 300 (currency data type) and "0" if the value is zero or null. I get strings in the query output - they are all left aligned and I cannot add them without first converting them to values. What might be causing this?
8
59509
by: SenthilVel | last post by:
how to get the corresponding values for a given Key in hashtable ??
3
1956
by: Jen | last post by:
Hi I have created some controls (HtmlInputText, HtmlGenericControl, TextBox) dynamically. But I have problem getting the values from these controls to save them. Is there a way to do that? Regards and Many thanks Jen
1
3819
by: MattB | last post by:
OK, never mind my last post. It was easy enough to refer to the table the repeater is bound to, but I made a big, incorrect assumption in that post. In my last post I thought I was successfully getting values from the textboxes in my repeater. It turns out I am not and I can't see what I'm doing wrong. I've had this problem before and just ended up taking a different route to avoid it. Now I REALLY need to figure out what I'm doing...
2
1687
by: Kiran Kumar Pinjala | last post by:
Hi, May be this is silly, or I just need a second pair eyes to look at this. I am trying to get values that I have edited in a datagrid and update the values with those values. Here is the code that I am using in my update command. TextBox txtProdName = (TextBox)e.Item.Cells.Controls; TextBox txtSuppID = (TextBox)e.Item.Cells.Controls; TextBox txtCatID = (TextBox)e.Item.Cells.Controls;
3
3870
by: Michael Glass | last post by:
I'm working on an ASP.Net web app using VS2005 and the .Net 2.0 framework, and I have a serious problem with the page I'm currently working on. The page has, among other things, two FormViews and a GridView control, each with its own SqlDataSource. FormView1 talks to my Opportunity table and has an ItemTemplate and an EditItemTemplate. FormView2 talks to my Activities table and has an ItemTemplate, InsertItemTemplate and an...
1
1671
by: lottaviano | last post by:
My table lists pieces of equipment and the date/time they are taken down for maintenance, and date/time maintenance is complete (put back up to production). Sometimes these dates/times are within the same WorkWeek, but sometimes a piece of equipment is down for multiple weeks at a time. I need to calculate the % of time "up" per workweek. For example, if a piece of equipment went down on Wednesday, June 7 and was not back up until...
3
1396
by: Nathan Sokalski | last post by:
I have the following code: Dim values As New ArrayList() values.Add("Yes") values.Add("No") values.Add("Maybe") values.Add("Whatever") dim x as String()=values.ToArray() However, I recieve an error saying an Object array cannot be implicitly
0
7860
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8222
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6634
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5726
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5398
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3847
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3883
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1195
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.