Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_espanol thread: Campo datetime


Message #1 by "Didac Lucas" <didac.lucas@d...> on Thu, 11 Apr 2002 13:27:58 +0100
Fijate en los metodos de DateTime

DateTime ayer = DateTime.Today.AddDays(-1);

esto te devuelve el dia de ayer

MAtias

> -----Original Message-----
> From: Didac Lucas [mailto:didac.lucas@d...]
> Sent: jueves, 11 de abril de 2002 9:28
> To: ASP.Net en Español
> Subject: [aspx_espanol] Campo datetime
>
>
>
> Buenas, alguien sabe si hay alguna funcion en vb para restar una fecha.
> Lo tengo en string y lo paso a datetime, lo que quiero realizar
> es un intervalo de tiempo
> es decir que si paso el 10/02/2002 el intervalo sea desde
> 09/02/2002 hasta 10/02/2002
>
> Lo que hago es esto:
>
> Dim Dates as Datetime
>
> Dates = DateTime.Parse("fecha")
>
> Esto para convertirlo a Fecha, lo que no se es obtener el dia anterior.
>
> Haber si hay alguna funcion de Vb que te haga esto.
>
> Gracias
>
>
>
>
>
>
> --
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder
> diese E-Mail irrtümlich erhalten haben, informieren Sie bitte
> sofort den Absender und vernichten Sie diese Mail. Das unerlaubte
> Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged
> information. If you are not the intended recipient (or have
> received this e-mail in error) please notify the sender
> immediately and destroy this e-mail. Any unauthorized copying,
> disclosure or distribution of the material in this e-mail is
> strictly forbidden.
>
>
>
> ---
> Usted está suscrito a aspx_espanol como:
> woloski@s...
> Para darse de baja, envíe un mensaje en blanco a
> %%email.unsub%%
>



  Return to Index