Add a day string
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngvb' list.


Carlos Magalhaes
-- Moved from [aspngfreeforall] to [aspngvb] by Marcie Jones <Click here to reveal e-mail address> --

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>Add a day string</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hi all,</FONT>
</P>

<P><FONT SIZE=2>I have a date dimed as a string</FONT>
</P>

<P><FONT SIZE=2>Dim datetime as string</FONT>
<BR><FONT SIZE=2>Datetime = "6/05/2002 00:00:00"</FONT>
</P>

<P><FONT SIZE=2>OK now I want to have another string </FONT>
</P>

<P><FONT SIZE=2>Dim newdt as string</FONT>
<BR><FONT SIZE=2>Newdt = datetime + some way of adding one full day </FONT>
</P>

<P><FONT SIZE=2>So that I get the end result to be </FONT>
</P>

<P><FONT SIZE=2>6/06/2002 00:00:00</FONT>
</P>
<BR>

<P><FONT SIZE=2>How can I do this?</FONT>
</P>

<P><FONT SIZE=2>Thank You !</FONT>
</P>

</BODY>
</HTML>

-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.

Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.

If you have received this email in error please notify
Click here to reveal e-mail address For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>

Reply to this message...
 
    
=?iso-8859-1?Q?Jo=E3o_Carreiro?=
Dim Datetime As String = "6/05/2002 00:00:00"
Dim newdt as string

Newdt = DateAdd("d",1,Datetime)

-----Original Message-----
From: Carlos Magalhaes [mailto:Click here to reveal e-mail address]
Sent: 12 June 2002 08:24
To: aspngvb
Subject: [aspngvb] Add a day string

-- Moved from [aspngfreeforall] to [aspngvb] by Marcie Jones
<Click here to reveal e-mail address> --

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>Add a day string</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hi all,</FONT>
</P>

<P><FONT SIZE=2>I have a date dimed as a string</FONT>
</P>

<P><FONT SIZE=2>Dim datetime as string</FONT>
<BR><FONT SIZE=2>Datetime = "6/05/2002 00:00:00"</FONT>
</P>

<P><FONT SIZE=2>OK now I want to have another string </FONT>
</P>

<P><FONT SIZE=2>Dim newdt as string</FONT>
<BR><FONT SIZE=2>Newdt = datetime + some way of adding one full day </FONT>
</P>

<P><FONT SIZE=2>So that I get the end result to be </FONT>
</P>

<P><FONT SIZE=2>6/06/2002 00:00:00</FONT>
</P>
<BR>

<P><FONT SIZE=2>How can I do this?</FONT>
</P>

<P><FONT SIZE=2>Thank You !</FONT>
</P>

</BODY>
</HTML>

-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.

Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.

If you have received this email in error please notify
Click here to reveal e-mail address For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>

| [aspngvb] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngvb.asp = JOIN/QUIT

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

IMPORTANT NOTICE
This communication contains information, which is confidential and may also
be privileged. It is for the exclusive use of the intended recipient(s). If
you are not the intended recipient(s) please note that any form of
distribution, copying or use of this communication or the information in it
is strictly prohibited and may be unlawful. If you have received this
communication in error please return it to the sender. The opinions
expressed within this communication are not necessarily those expressed by
Teletext Ltd.

Teletext Ltd.
101 Farm Lane
Fulham
London SW6 1QJ

Registered in England number 2694814

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

Reply to this message...
 
    
Daniel Naumann
If you have "Option Strict ON" (in vb anyway - does C# have an equivalent?) I
think you'll have to cast the string to date first, then add the day, then cast
back to string.

Dim dtDate as Datetime
Dim strDate as String = <some date>

dtDate = CType(strDate, Datetime)
dtDate = DateAdd("d", 1, dtDate)
strDate = dtDate.ToString        (or strDate = CType(dtDate, String))

Daniel.

-----Original Message-----
From: João Carreiro [mailto:Click here to reveal e-mail address]
Sent: 13-Jun-2002 12:06
To: aspngvb
Subject: [aspngvb] RE: Add a day string

Dim Datetime As String = "6/05/2002 00:00:00"
Dim newdt as string

Newdt = DateAdd("d",1,Datetime)

-----Original Message-----
From: Carlos Magalhaes [mailto:Click here to reveal e-mail address]
Sent: 12 June 2002 08:24
To: aspngvb
Subject: [aspngvb] Add a day string

-- Moved from [aspngfreeforall] to [aspngvb] by Marcie Jones
<Click here to reveal e-mail address> --

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>Add a day string</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hi all,</FONT>
</P>

<P><FONT SIZE=2>I have a date dimed as a string</FONT>
</P>

<P><FONT SIZE=2>Dim datetime as string</FONT>
<BR><FONT SIZE=2>Datetime = "6/05/2002 00:00:00"</FONT>
</P>

<P><FONT SIZE=2>OK now I want to have another string </FONT>
</P>

<P><FONT SIZE=2>Dim newdt as string</FONT>
<BR><FONT SIZE=2>Newdt = datetime + some way of adding one full day </FONT>
</P>

<P><FONT SIZE=2>So that I get the end result to be </FONT>
</P>

<P><FONT SIZE=2>6/06/2002 00:00:00</FONT>
</P>
<BR>

<P><FONT SIZE=2>How can I do this?</FONT>
</P>

<P><FONT SIZE=2>Thank You !</FONT>
</P>

</BODY>
</HTML>

-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.

Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.

If you have received this email in error please notify
Click here to reveal e-mail address For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>

| [aspngvb] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngvb.asp = JOIN/QUIT

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

IMPORTANT NOTICE
This communication contains information, which is confidential and may also
be privileged. It is for the exclusive use of the intended recipient(s). If
you are not the intended recipient(s) please note that any form of
distribution, copying or use of this communication or the information in it
is strictly prohibited and may be unlawful. If you have received this
communication in error please return it to the sender. The opinions
expressed within this communication are not necessarily those expressed by
Teletext Ltd.

Teletext Ltd.
101 Farm Lane
Fulham
London SW6 1QJ

Registered in England number 2694814

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

| [aspngvb] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngvb.asp = JOIN/QUIT

Reply to this message...
 
    
Darren Neimke
> "Option Strict ON" (in vb anyway - does C# have an equivalent?)

For C# it's built in as the compulsary default of the language... If you =
know what I mean!

-----Original Message-----
From: Daniel Naumann [mailto:Click here to reveal e-mail address]=20
Sent: Thursday, June 13, 2002 7:29 AM
To: aspngvb
Subject: [aspngvb] RE: Add a day string

If you have "Option Strict ON" (in vb anyway - does C# have an =
equivalent?) I think you'll have to cast the string to date first, then =
add the day, then cast back to string.

Dim dtDate as Datetime
Dim strDate as String =3D <some date>

dtDate =3D CType(strDate, Datetime)
dtDate =3D DateAdd("d", 1, dtDate)
strDate =3D dtDate.ToString        (or strDate =3D CType(dtDate, String))

Daniel.

-----Original Message-----
From: Jo=E3o Carreiro [mailto:Click here to reveal e-mail address]
Sent: 13-Jun-2002 12:06
To: aspngvb
Subject: [aspngvb] RE: Add a day string

Dim Datetime As String =3D "6/05/2002 00:00:00"
Dim newdt as string

Newdt =3D DateAdd("d",1,Datetime)

-----Original Message-----
From: Carlos Magalhaes [mailto:Click here to reveal e-mail address]
Sent: 12 June 2002 08:24
To: aspngvb
Subject: [aspngvb] Add a day string

-- Moved from [aspngfreeforall] to [aspngvb] by Marcie Jones =
<Click here to reveal e-mail address> --

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange =
Server version 5.5.2652.35"> <TITLE>Add a day string</TITLE> </HEAD> =
<BODY>

<P><FONT SIZE=3D2>Hi all,</FONT>
</P>

<P><FONT SIZE=3D2>I have a date dimed as a string</FONT>
</P>

<P><FONT SIZE=3D2>Dim datetime as string</FONT>
<BR><FONT SIZE=3D2>Datetime =3D "6/05/2002 00:00:00"</FONT>
</P>

<P><FONT SIZE=3D2>OK now I want to have another string </FONT> </P>

<P><FONT SIZE=3D2>Dim newdt as string</FONT>
<BR><FONT SIZE=3D2>Newdt =3D datetime + some way of adding one full day =
</FONT> </P>

<P><FONT SIZE=3D2>So that I get the end result to be </FONT>
</P>

<P><FONT SIZE=3D2>6/06/2002 00:00:00</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>How can I do this?</FONT>
</P>

<P><FONT SIZE=3D2>Thank You !</FONT>
</P>

</BODY>
</HTML>

-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.

Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.

If you have received this email in error please notify
Click here to reveal e-mail address For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>

| [aspngvb] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.asplists.com/asplists/aspngvb.asp =3D JOIN/QUIT

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet =
delivered through the MessageLabs Virus Control Centre. For further =
information visit http://www.star.net.uk/stats.asp

IMPORTANT NOTICE
This communication contains information, which is confidential and may =
also be privileged. It is for the exclusive use of the intended =
recipient(s). If you are not the intended recipient(s) please note that =
any form of distribution, copying or use of this communication or the =
information in it is strictly prohibited and may be unlawful. If you =
have received this communication in error please return it to the =
sender. The opinions expressed within this communication are not =
necessarily those expressed by Teletext Ltd.

Teletext Ltd.
101 Farm Lane
Fulham
London SW6 1QJ

Registered in England number 2694814

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet =
delivered through the MessageLabs Virus Control Centre. For further =
information visit http://www.star.net.uk/stats.asp

| [aspngvb] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.asplists.com/asplists/aspngvb.asp =3D JOIN/QUIT

| [aspngvb] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.asplists.com/asplists/aspngvb.asp =3D JOIN/QUIT

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com