Is there a conversion for a date field in SQL to show the day of the
week that day is ? I've looked in help with no luck. I know in excel
for example you can create custom format for a date to 'dddd' and it
displays the Monday, Tuesday etc... Even it the Day number was
returned i.e if Monday = 1 then 1, 2, 3, 4, 5, 6, 7 instead of day
names.
Philippa 2 34462
SELECT DATENAME(DW,datetimecol)
FROM Sometable
--
David Portas
------------
Please reply only to the newsgroup
--
"Philippa" <ph*************@systemc.com> wrote in message
news:9c**************************@posting.google.c om... Is there a conversion for a date field in SQL to show the day of the week that day is ? I've looked in help with no luck. I know in excel for example you can create custom format for a date to 'dddd' and it displays the Monday, Tuesday etc... Even it the Day number was returned i.e if Monday = 1 then 1, 2, 3, 4, 5, 6, 7 instead of day names.
Philippa
Thank you, this works like a dream
"David Portas" <RE****************************@acm.org> wrote in message news:<7O********************@giganews.com>... SELECT DATENAME(DW,datetimecol) FROM Sometable
-- David Portas ------------ Please reply only to the newsgroup --
"Philippa" <ph*************@systemc.com> wrote in message news:9c**************************@posting.google.c om... Is there a conversion for a date field in SQL to show the day of the week that day is ? I've looked in help with no luck. I know in excel for example you can create custom format for a date to 'dddd' and it displays the Monday, Tuesday etc... Even it the Day number was returned i.e if Monday = 1 then 1, 2, 3, 4, 5, 6, 7 instead of day names.
Philippa This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: praba kar |
last post by:
Dear All,
In Php we can print RFC 2822 formatted date by
date('r') with parameter r. Then it will print the
below format date.
"Thu, 7 Apr 2005 01:46:36 -0300".
I want to print same RFC 2822...
|
by: amith |
last post by:
hi
I have written javascript for comparing two dates in US format and
finding out whether the start date is greater than the end date and
vice versa.
In this attempt i have instantiated the...
|
by: peashoe |
last post by:
I have an asp page that uses a calendar.js (pop-up) file to add an
exact date format in the text field (txtDDate). My problem is I need
some javascript that sets an alert that does not allow them...
|
by: lsy |
last post by:
i wonder how can i order my statement interm of "ORDER BY FORMAT(Date, 'mmmm')" with using this it will order by alphabethical but i want it order by month... i had try "ORDER BY FORMAT(Date, 'mm')"...
|
by: Keith Chadwick |
last post by:
Been trying to use the ms:format-date() in one of my transformations.
I have all of the necessary declarations in my xml as in
<?xml version="1.0" ?>
<data xml:space="default"...
|
by: G Gerard |
last post by:
Hello
I am having some problem comparing dates with the SQL statement below
MySQL = "SELECT Format(Date, 'yyyy/mmmm/dd') as FROM TblDates WHERE
_
Format(Date, 'yyyy/mmmm/dd') =...
|
by: fniles |
last post by:
How do you do Format(Date, "mmddyy") in VB.NET ?
Thank you
|
by: libsfan01 |
last post by:
how can i use regular expressions to ensure a mysql format date entry
in a text field?
thanks
marc
|
by: mgpsivan |
last post by:
Hi,
i have form in Asp.net(2003) in that i've to change the format of the date by the following statement
Format(Date.Today, "dd/mm/yyyy")
but when i give this code the month part displays as...
|
by: omerbutt |
last post by:
hi i need to store the date in the format date('YmdGis') the problem is that locally it is working perfect but when i go live it stops storing the date in this format , although it does store the...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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...
|
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...
|
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...
| | |