Conversion Of Nvarchar To Datetime. Is This Possible??

Aug 22, 2000

The transaction_date is datetime and date1 is nvarchar.
When I run the script:
Insert into payment(transaction_date)
Select convert (datetime, date1) from dep01

I get the following message:

Server: Msg 8115, Level 16, State 2, Line 1
Arithmetic overflow error converting expression to data type datetime.
The statement has been terminated.

Thanks in advance, Mike

View 1 Replies


ADVERTISEMENT

Conversion Error...nvarchar To Datetime

Jul 23, 2005

Hi Group,I am new with SQL Server..I am working with SQL Server 2000.I am storing the date in a nvarchar column of atable.... Now I want toshow the data of Weekends..Everything is OK...But the problem isarising with Conversion of nvarchar to date...to identify theweekends...Like..Here DATEVALUE is a nvarchar column...But getting theerror..Value of DATEVALUE like dd-mm-yyyy...04-08-2004-----------------------------------------------------------Server: Msg 8115, Level 16, State 2, Line 1Arithmetic overflow error converting expression to data type datetime.---------------------------------------------------------------------------Actual Query-------------------------------Select DATEVALUE,<Other Column Names> from Result whereDatepart(dw,convert(Datetime,DATEVALUE))<>1 andDatepart(dw,convert(Datetime,DATEVALUE))<>7-----------------------------------------------------------Thanks in advance..RegardsArijit Chatterjee

View 3 Replies View Related

Scripting Field Conversion From Nvarchar To Datetime

Apr 19, 2004

What is the correct syntax to convert a field from nvarchar to datetime?

View 2 Replies View Related

Conversion From Varchar To Nvarchar

Aug 4, 2006

Hi,

Can someone please explain to me how the datapages in Microsoft SQL Server 2000 works. The pages are supposed to be 8K, that is 8192 bytes of which only 8060 are accessible for data storage (due to overhead).
Now, I currently have a table containing 8 fields. Two of these fields are varchar and should be converted to nvarchar. One of the varchar fields is limited to 255 characters and the other to 4000 characters. When I convert the 255 characters field to nvarchar it works just fine, but when I want to convert the 4000 characters field I get an error from MS SQL saying that it gets to big. Is the error only for the 4000 characters field (which growths to 8000 bytes when using nvarchar instead of varchar) or must the whole table fit into one datapage?
Could a blob maybe solve my problem, or will I face new problems when storing unicode characters in a blob?

Thanks in advance

View 3 Replies View Related

Conversion Of Nvarchar To Smalldatetime

Jul 31, 2007

Hi,
when I convert a field into smalldatetime from nvarchar(50) in Sql Server 2000, i got a default value (1900-01-01 00:00:00) for that field.Actually value of that field to be changed as different values).I want to be convert bulk of records.please help me.

current data

pvdate(nvarchar(50))
------
12/03/2007

Data to be changed into

pvdate(smalldatetime)
--------------------
2007-03-12 12:00:00

View 10 Replies View Related

Conversion Between Image And Nvarchar(max)

Jan 25, 2008

Hi,

I need to transfer data from an image type column to a nvarchar(max) column. Is there a specific function that i could use to do this coversion..

Thanks,

View 1 Replies View Related

Conversion Failed When Converting Nvarchar Value

Aug 13, 2014

i have the following code:

SELECT Quantity
FROM dbo.BNYForwardsTaxLotsForwards
WHERE investmentType ='Forward Cash'
and Quantity < 0

And I get the following error Msg 245, Level 16, State 1, Line 1..Conversion failed when converting the nvarchar value '-12213949.9' to data type int.

View 2 Replies View Related

Conversion Failed When Converting The Nvarchar...

Mar 11, 2008

One of my clients decided to put letters into their customers' account numbers. They have a numbering scheme where all temporary accounts have a letter in the account OR are numbered greater than 33000, and all permanent accounts are all digits and less than or equal to 33000. all primary accounts have a NumberSuffix of 000.

Now i am tasked with retrieving all primary, non-temp accounts. I cannot simply do WHERE Number <= 33000 because when it gets to an account containing a letter like "00A01", it craps out and says "Conversion failed when converting the nvarchar value '00A01' to data type int."

So decided to run a filtering query first to filter out all accounts with letters, and then from that dataset select all accounts <=33000.

WITH members (FirstName, LastName, Number, NumberSuffix) AS
(
SELECT
dbo.Entity.FirstName,
dbo.Entity.LastName,
dbo.Entity.Number,
dbo.Entity.NumberSuffix
FROM
dbo.Entity
WHERE
NumberSuffix = 000 AND
Number NOT LIKE '%A%' AND
Number NOT LIKE '%B%' AND
Number NOT LIKE '%C%' AND
Number NOT LIKE '%D%' AND
Number NOT LIKE '%E%' AND
Number NOT LIKE '%F%' AND
Number NOT LIKE '%G%' AND
Number NOT LIKE '%H%' AND
Number NOT LIKE '%I%' AND
Number NOT LIKE '%J%'
)
SELECT *
FROM
members
WHERE
Number <= 33000
ORDER BY
Number
when i do this, i get the same error for some reason. Yet when i execute this at the end instead:
SELECT *
FROM
members
WHERE
Number LIKE '%A%'
ORDER BY
Number
i get an empty set (meaning it actually does get filtered).
but somehow it still able to participate in a range comparison?

WHY??

thanks,
Leon

View 10 Replies View Related

Conversion Failed When Converting The Nvarchar Value

Jan 14, 2008

Okay, I have the following store procedure and I kept getting an error.





Code Block
ALTER PROCEDURE [dbo].[Search]
-- Add the parameters for the stored procedure here
@schoolID int = NULL,
@scholarship varchar(250) = NULL,
@major varchar(250) = NULL,
@requirement varchar(250) = NULL,
@debug bit = 0
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
Declare @SQL as Varchar(4000);
Declare @Params as Varchar(3000);
Set @SQL = N'SELECT * FROM [scholarship] WHERE [sectionID] = ' + @schoolID;
Set @Params = N'@scholarship VARCHAR(250),@major VARCHAR(250),@requirement VARCHAR(250)'
If @scholarship IS NOT NULL
Set @SQL = @SQL + N' AND [scholarship].[schlrName] LIKE + ''%'' + @scholarship + ''%'''
If @major IS NOT NULL
Set @SQL = @SQL + N' AND [scholarship].[Specification] LIKE + ''%'' + @last + ''%'''
If @requirement IS NOT NULL
Set @SQL = @SQL + N' AND ([scholarship].[reqr1] LIKE + ''%'' + @requirement + ''%'''
If @requirement IS NOT NULL
Set @SQL = @SQL + N' OR [scholarship].[reqr2] LIKE + ''%'' + @requirement + ''%'''
If @requirement IS NOT NULL
Set @SQL = @SQL + N' OR [scholarship].[reqr3] LIKE + ''%'' + @requirement + ''%'''
If @requirement IS NOT NULL
Set @SQL = @SQL + N' OR [scholarship].[reqr4] LIKE + ''%'' + @requirement + ''%'''
If @requirement IS NOT NULL
Set @SQL = @SQL + N' OR [scholarship].[reqr5] LIKE + ''%'' + @requirement + ''%'')'
If @debug = 1
PRINT @SQL
Exec sp_executesql @SQL, @Params, @scholarship, @major, @requirement
END




And I kept getting this error:


Msg 245, Level 16, State 1, Procedure Search, Line 28

Conversion failed when converting the nvarchar value 'SELECT * FROM [scholarship] WHERE [sectionID] = ' to data type int.

Any help is much appreciated.

View 7 Replies View Related

Transact SQL :: Conversion Failed When Converting Nvarchar Value

Oct 7, 2015

I am new to SQL and trying my hand at what I thought would be a simple query to bring back the loan products that are not HMDA reportable - hence the NOT IN and I get an error message after adding the NOT IN...I have read a lot of responses to the issue of an error message of 'Conversion failed when converting the nvarchar value' to try and solve the error - and have had no luck.  Before I throw my laptop out the window..Here is the error message along with what I thought was a simple query; Conversion failed when converting the nvarchar value '80/10/10' to data type int.Here is the query;

SELECT
P.ProductID,
P.Name,
PC.Name AS [Product Group],
LP.Name AS [Loan Purpose],
CASE WHEN LP.IsHMDAReportableFL = 0 THEN 'No' ELSE 'Yes' END AS [HMDA Reportable],

[code]...

View 5 Replies View Related

Conversion Failed When Converting The Nvarchar Value To Datatype Int

Apr 1, 2008

Exception in one of the stored procs:

Conversion failed when converting the nvarchar value to datatype int. After moving database from 2000 to 2005.
Using backup and restore.

Note I had the same issue after restoring the production database on my local server SQL2000->SQL2000.

The problem was solved by restoring master and msdb from the production. But I can't do this on the SQL2005.

This is not a collation issue as I have ensured collation is the same on all databases including the system ones.

The database in question makes extensive use of user defined data types (Which I have recreated on the destination server).

Can anyone please help?

Raf


View 9 Replies View Related

Conversion Failed When Converting The Nvarchar Value '3,4' To Data Type Int.

Jun 1, 2008

i am getting this error when passing multiple checkbox values to next page..
 Error is Conversion failed when converting the nvarchar value '3,4' to data type int.
my code is below
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:mobiletimesConnectionString %>"
SelectCommand = "SELECT * FROM [device] WHERE [dev_id] IN (@chk1)">
<SelectParameters>
<asp:FormParameter FormField="chk1" Name="chk1" />
</SelectParameters>
</asp:SqlDataSource><asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"
BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px"
CellPadding="4" GridLines="Both">
<FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
<ItemStyle BackColor="White" ForeColor="#330099" />
<SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
<ItemTemplate><div class="overviewpdamain" >
<div class="overviewpdadevice">
<center>
<b><%#Eval("dev_name")%></b><br />
<b>
</b>
</center></div>
</div></ItemTemplate>
</asp:DataList>

View 6 Replies View Related

SQL Server 2008 :: Conversion Failed When Converting Nvarchar Value To INT

Apr 9, 2015

Declare @specificDB nvarchar(max) = 'AdventureWorksDW2012'
,@tablename nvarchar(max) = 'DimAccount'

declare @localtab INT
SET @localtab = (SELECT Convert(INT,('select count(*) from ' + @specificDB+'.'+'INFORMATION_SCHEMA.Tables WHERE TABLE_TYPE = ''BASE TABLE'' AND Table_name = ' + @tablename)))
Print @localtab
Print @localtab

----

Msg 245, Level 16, State 1, Line 8
Conversion failed when converting the nvarchar value 'select count(*) from AdventureWorksDW2012.INFORMATION_SCHEMA.Tables WHERE TABLE_TYPE = 'BASE TABLE' AND Table_name = DimAccount' to data type int.

View 2 Replies View Related

Implicit Conversion Of Datatype Text To Nvarchar Is Not Allowed.

Jul 20, 2005

I am facing a problem while using SQL Server with VB application.Implicit conversion from datatype text to nvarchar is not allowed.Use the convert function to run this query.When i see the trace file, i see one stored procedure called but nolines of code get executed, and immediately after that the ROLLBACKTRANSACTION occurs and the applications fails.But to my surprise i am able to do the same thing on a differentmachine using the same application and the same database on the sameserver with the same user id.Can anyone explain the reason of occurance of this problem.I require this very urgently, so i will be oblized if anyone can comeup with a quick response.Kind Regards,Amit Kumar

View 5 Replies View Related

Nvarchar(50) To Datetime

Feb 29, 2008

Hi all, Please help.
I have created a new SQL dB and imported a table from Access to SQL.
my date columns in Access have been imported as nvarchar(50).
all dates are in the format dd/mm/yyyy.And there is no bad data

My problem is that in the table design of my new SQL Table, if I change the datatype from nvarchar(50) to datetime I get the error "Arithmetic overflow error converting expression to data type datetime"

I know this is telling me that there is a problem with the format of some of the dates but all my dates are defo dd/mm/yyyy ,none of the data has format mm/dd/yyyy ie a 13th month.I know this because I cut the data down to just 2 pieces of data.
can someone help me get the format into datetime please
Ray..

View 8 Replies View Related

Conversion Failed When Converting The Nvarchar Value Xxxxxxxx To Data Type Int

Sep 4, 2007

I am using Sql server 2005, Asp.net 2.0. In my application i have to store a mobile number in database, and in table it is declared as nvarchar(50) (datatype). In stored procedure as it is nvarchar(50). In my code , stored procedure is called in a function. In that while executing project error is coming as (cmd.ExecuteNonQuery)
Conversion failed when converting the nvarchar value xxxxxxxxx to data type int.
Kindly give your suggestions to solve this problem.

View 10 Replies View Related

Convert Nvarchar Into Datetime

Oct 9, 2003

Hi,
How I can convert text '07012003' into datetime ?.
If I am using below format and getting the error 'the conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value'


select convert(smalldatetime,'07012003')

Any advice please?.
Thanks,
Ravi

View 4 Replies View Related

Converting Nvarchar To Datetime

Jan 17, 2008



i have some fields in SQL Server table as nvarchar(50) and the user actually enters date (example : 02/05/07) now they want those fields to be converted to datetime or small datetime field.

How do i achieve it without losing data?


Thanks
bhu

View 1 Replies View Related

The Conversion Of The Nvarchar Value '3008000003' Overflowed An Int Column. Maximum Integer Value Exceeded.

Jul 7, 2007

 HiAm Using ASP.NET With SQL SERVER 2005 Backend
AGENT CODE
3008000003

               



NAME
agent code dropdownlist values like 1005000006,2009000002,3008000003select dropdownlist value it display corresponding values related to that codewhen i select first 2 values its run properly,But when i select  3008000003 i will get following error messagein SQL SERVER 2005 Agent Code Date Type is "bigint"" The conversion of the nvarchar value '3008000003' overflowed an int
column. Maximum integer value exceeded. Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code. Exception Details:
System.Data.SqlClient.SqlException: The conversion of the nvarchar value
'3008000003' overflowed an int column. Maximum integer value
exceeded.Source Error:



An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:  Please Help me to solve this issueThanks With RegardsS.Senthil Nathan   

View 4 Replies View Related

Error Message Conversion Failed When Converting The Nvarchar Value To Data Type Int??

Jan 19, 2007

Hi,

I can't seem to fix the following error in my stored procedure.

Error Message: Conversion failed when converting the nvarchar value '1007-001' to data type int.

The line of code in my stored procedure that seems to be the problem is the following:

CASE WHEN [Order Details].[Job No] IS NULL THEN [Orders].[Order No] ELSE [Order Details].[Job No] END

Order No has a data type of INT and Job No has a data type NVARCHAR(8). In the above case statement i'm not trying to convert anything but just display a column depending on the out come of the case statement. If anyone knows how to get around this error you help would be very welcome.

View 2 Replies View Related

SQL Field Convert Nvarchar To Datetime

Dec 4, 2007

Hi everyone.

So as the subject says, I have a few fields that are nvarchar but hold date information. Most of these fields I have been able to move to datetime easiliy enough, simply by going into edit mode for the table and converting the fields to datetime. But 1 field is giving me problems I keep getting this error.
quote:- Unable to modify table.
Arithmetic overflow error converting expression to data type datetime.
The statement has been terminated.

I really dont know why I'm getting this error, but I"m assuming it may have to be something like one of the records may not be in date format. But I don't know if this is the case and I don't know how to locate where my problem is coming from.
Any guidance is greatly appreciated.

Thanks.

View 2 Replies View Related

Modify A Column From Nvarchar(50) To A DateTime

Jun 3, 2007

Hello,

I have a column that is a currently set as nvarchar(50) and is called DateEmployed.
There are over a hundred rows that contain dates which is in nvarchar format.

This column now needs to be changed to a DateTime datatype. (Don't ask me it was not set
to a dateTime when this was first designed - I wasn't here)

However, I have to change this column to a DateTime without destroying the data.

Is there any easy way to write some script or use studio management to change this.

Currently the data is displayed like this in this column dd/MM/yyyy i.e. 25/8/2007.

The method I am using to try and change this is by going to studio management clicking
modify on the column and changing the datatype from a nvarchar(50) to a DateTime.

I get this following error message:
- Unable to modify table.
Arithmetic overflow error converting expression to data type datetime.
The statement has been terminated.

Any suggestions would be most grateful,

Thanks,

Steve

View 1 Replies View Related

Error Conversion Failed When Converting The Nvarchar Value 'xxxxxx' To Data Type Int, For Return Value

Aug 24, 2007

ALTER procedure [dbo].[findConsultantMail]

(



@PerID numeric(18,0),

@perMail nvarchar(100) OUTPUT



)

as

SELECT @perMail=PerMail FROM Personel

WHERE (PerID =@PerID)

return @perMail


I want to get Email address from sql database.
But whenever I executed stored procedure I get an error message
"Conversion failed when converting the nvarchar value 'xxxxxx@xxxxxx' to data type int"
If I want some numeric ID it is worked.

I also change my SP like this but results same.


ALTER procedure [dbo].[findConsultantMail]

(



@PerID nvarchar(18),

@perMail nvarchar(100) OUTPUT



)

as

SELECT @perMail=PerMail FROM Personel

WHERE (PerID =cast(@PerID as numeric(18,0)))

return cast(@perMail as nvarchar(100))



How can I get a string value form stored procedure.

View 4 Replies View Related

How To Solve An Error While Converting Nvarchar To Datetime

Apr 8, 2004

HI,
I HAVE BEEN TRYING TO TRANSFORM AN OLD TABLE TO A NEW FORMAT AND CHANGE SOME OF THE DATATYPE FORMATS USED IN THE OLD ONE.
OUT OF WHICH ONE IS A COLUMN CALLED AS FORM_RECEIVE_DATE WHICH HAS NVARCHAR(41) AS DATATYPE IN THE OLD TABLE CREATED BY A PREVIOUS DBA (DON'T KNOW wHY?)

wHILE CONVERTING IT INTO DATATYPE DATETIME , I AM GETTING THIS ERROR :- "Arithmetic overflow error converting expression to data type datetime." i DON'T KNOW WHY

hERE ARE FEW EXAMPLES OF THE DATA CONTAINED IN THE PREVIOUS TABLE :-

05082003
05062003
05142003

COULD YOU PLS TELL ME A WAY TO SOLVE THIS ?

View 4 Replies View Related

SQL Server 2012 :: Converting Nvarchar To Datetime

Jul 24, 2015

I have a column name DateofRecord and it is nvarchar type..all the values in this column are like this

"04/24/2013'
"05/01/2014"...etc...

My requirement is to convert this column into Datetime ?

I tried so many ways using cast and convert functions like cast(dateofrecord,datetime) or like convert(datetime,replace(DateofRecord,'"','''')) ..it didnt worked..

View 9 Replies View Related

Error Converting Data Type Nvarchar To Datetime

Mar 23, 2006

Hi
I have an insert stored procedure with a parameter @eventDate date type date time.  I have written a web form that takes the textbox.text value and assigns to the @eventDate parameter using a querystring.  Howevr when I run the application I get a SQL Exception error converting data type nvarchar to datetime.
I have tried dssqlInsertEvent.InsertParameters.add("EventDate", convert.todatetime(txtEventDate.text)); wbut received another error.
Any assistance would be greatly appreciated.

View 4 Replies View Related

Error Converting Data Type Nvarchar To Datetime

Jun 2, 2008

Hi,

I'm pretty desperat after trying solving the above problem in several days. I hope somone here can help me :-)

I have this stored procedure. When I try to Execute the storedprocedure where I have a date as parameter I get the above error.

I checked (many times), that the input parameter is a datetime format (30-05-2008) and also I checked the tabel and it is datetime format. I checked the table to see if it was english datetime format - but all the datetimes that are listet are listed in danish datetime format DD-MM-YYYY.

In the stored procedure I try this:


fProjectSkuTimeStamp >= @ReducedTime

I can't figure out where it gets that nvarchar from?

My stored procedure look like this:


set ANSI_NULLS ON

set QUOTED_IDENTIFIER ON

set NOCOUNT ON

go

ALTER PROCEDURE [dbo].[GetProjectSkuList]

@fProjectFId AS INTEGER = null, --ProjektId

@ReducedTime AS DATETIME --Tidsrum fra



AS

BEGIN

SELECT tProjectSku.fProjectSkuPId, tProjectSku.fCompanyFId, tProjectSku.fProjectFId,

tProjectSku.fProjectSkuDate,

tProjectSku.fOurContactFId, tProjectSku.fOurContactF2Id, tProjectSku.fOrderFId,

tProjectSku.fProjectSkuTimeStamp,

tProjectSku.fProjectSkuNote1, tProjectSku.fProjectSkuNote2, tProjectSku.fContactFId,

tProjectSku.fStoreTransactionsFId,

tProjectSku.fProjectSkuSalesPrice, tCompany.fCompanyName, tProject.fProjectName,

tOurContact.fOurContactFirstName + ' ' + tOurContact.fOurContactLastName AS CreatedBy,

tOurContact_1.fOurContactFirstName + ' ' + tOurContact_1.fOurContactLastName AS Responsible,

tContact.fContactFirstName + ' ' + tContact.fContactLastName AS ContactFullName,

tStoreTransactions.fStoreTransactionsCostPrice,

tStoreTransactions.fStoreTransactionsSerialNo





FROM tOurContact AS tOurContact_1 RIGHT OUTER JOIN

tContact RIGHT OUTER JOIN

tProjectSku LEFT OUTER JOIN

tStoreTransactions ON tProjectSku.fStoreTransactionsFId = tStoreTransactions.fStoreTransactionsPId ON

tContact.fContactPId = tProjectSku.fContactFId LEFT OUTER JOIN

tOrder ON tProjectSku.fOrderFId = tOrder.fOrderPId ON tOurContact_1.fOurContactPId = tProjectSku.fOurContactF2Id LEFT OUTER JOIN

tOurContact ON tProjectSku.fOurContactFId = tOurContact.fOurContactPId LEFT OUTER JOIN

tProject ON tProjectSku.fProjectFId = tProject.fProjectPId LEFT OUTER JOIN

tCompany ON tProjectSku.fCompanyFId = tCompany.fCompanyPId



WHERE

(tProjectSku.fProjectFId = @fProjectFId) AND

--fProjectSkuTimeStamp >= CONVERT(datetime, @ReducedTime, 120)

fProjectSkuTimeStamp >= @ReducedTime

ORDER BY tProjectSku.fProjectSkuPId DESC

END


Kind regards,

simsen :-)

View 7 Replies View Related

SQL Server 2014 :: Converting Column Of Type Nvarchar To Datetime

Aug 19, 2015

I am trying to convert a column (nvarchar) to date time.

Here is an example of some values:

20110905
20110901
20111003

As expected, I received the following error: 'Conversion failed when converting date and/or time from character string.'

However, I am unsure how I should approach updating the whole column. I would like the format to be '103'.

View 9 Replies View Related

Conversion Datetime

Mar 17, 2008

Hello boyz and girlz,
 
Little question:
I want to write the current date and time into a database with following code:
 
Dim time As DateTime
 
time = DateTime.Now
 
connection.Open()
 
 
cmd.CommandText = "INSERT INTO tblOpmerkingen(Time )values('" + time + "')"
cmd.Connection = connection
 
But: My "time" is DD/MM/YYYY HH/mm/SS
and in my database time = MM/DD/YYYY HH/mm/SS
 
can somebody help me?
thanx

View 6 Replies View Related

Datetime Conversion

Jun 16, 2005

Hi,I tried to convert sql datetime to string (hh:mm:ss), or filetime, but i wasn't successful. Will somebody help me with my problem? I don't know how I can solve my problem really.Thank's

View 6 Replies View Related

Datetime Conversion

Feb 28, 2005

Hello, everyone:

How to convert '173515' to be datetime like "5:33:00 PM". Thanks.

ZYT

View 1 Replies View Related

Datetime Conversion

May 19, 2008

I have in text field (nvarchar) following date dd-mm-yyyy
and i would like to convert it to smalldatetime field
in format yyyy-mm-dd.

Is there any explicit way to do it?

thank you

View 1 Replies View Related

Datetime Conversion

Feb 16, 2006

Hi!

I want to get current date and subtract 14 days from that date and return result as int in yyyymmdd-format.
How should I do that?

Thanks in advance, Makkaramestari

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved