473,395 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to set Monday as day one of the week?

Dear reader,

By using the command:

DatePart("ww";[DateField])

Sunday is coming up as next week.

I prefer that a week start on Monday and ends on Sunday.

How can I set Monday as day one of the week?

Tanks for any help.

Simon
Aug 5 '07 #1
3 3758
Hi
DatePart("ww";[DateField])
How can I set Monday as day one of the week?
Try :

DatePart("ww";[DateField];vbMonday)

Regards
Jens
Aug 5 '07 #2
On Sun, 5 Aug 2007 18:18:37 +0200, "Simon" <Sv********@Versatel.nl>
wrote:
>Dear reader,

By using the command:

DatePart("ww";[DateField])

Sunday is coming up as next week.

I prefer that a week start on Monday and ends on Sunday.

How can I set Monday as day one of the week?

Tanks for any help.

Simon

DatePart("ww", [DateField], vbMonday)
Aug 5 '07 #3
suggest you read up on the DatePart() function in Help, so you'll understand
how to use all the arguments, both required and optional.

hth
"Simon" <Sv********@Versatel.nlwrote in message
news:46*********************@news.tele2.nl...
Dear reader,

By using the command:

DatePart("ww";[DateField])

Sunday is coming up as next week.

I prefer that a week start on Monday and ends on Sunday.

How can I set Monday as day one of the week?

Tanks for any help.

Simon


Aug 5 '07 #4

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

Similar topics

3
by: CrystalDBA | last post by:
I am using SQL Server 2000. I need to query my database for all the contracts that came in during a certain time frame (user is prompted for reportingperiodid). Table - Periods Fields -...
5
by: Martien van Wanrooij | last post by:
I would like to retrieve, let us say, the First Monday after a certain date, so my (imaginary) function could be something like echo weekdayAfter("28 July 2005", "Monday") should return "1 August...
4
by: Morten Wennevik | last post by:
In an earlier thread I said first day of week was defined as monday, not sunday and forgot all about the thread, so I never got to reply on where it says that. So here it is. ISO 8601 -...
5
by: Drum2001 | last post by:
Currently I am running the following query: SELECT DateFilter.Employee, DateFilter.TimeTypeIn, sectodur(IIf(Sum(DateDiff("s",,))-40*60*60>0,Sum(DateDiff("s",,))-40*60*60,0)) AS Overtime,...
7
by: bojan.pikl | last post by:
Hi, I am making a calendar. It is costum made and I would like to have the ability to choose the first day (Monday or Sunday). I know for the firstDayOfWeek, but I can't change it. What should I...
4
by: sweetpotatop | last post by:
Hi, I wonder if there is any function in VB or SQL that will return the date of first Monday of the Monday. Besides, is there are a way finding the numbers of Monday in a month? Thanks in...
5
by: Chris | last post by:
I am trying to output Monday of the current week i.e. if Monday is the 8th I want to display 'Monday 8th' for any date between Monday 8-14th. I would appreciate any help, the code below is...
1
by: Frank Rizzo | last post by:
I need to get a Monday of the current week based on any date. I got the function below working fine, but it feels hacky. And I can't find anything in the framework. Is there a more elegant...
4
by: Vince | last post by:
Given a week Number, how do I calculate the date that for the Monday of that week?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.