|
I haven't played with Date/Time data recently but my first thought is to take a look at the Datepart(x) function where x is a DateTime variable.
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Ricardo Gonçalves da Silva
Sent: Thursday, March 01, 2012 3:18 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Date Format Help
Hi,
In my dataset the DATE variable is in DATETIME20 format:
20FEB2010:00:00:00
I want to exclude all the lines where DATE is GE (>=) 31MAY2009.
How can I do this with this format?
Thanks
Rick
Esta mensagem e seus anexos podem conter informações confidenciais ou privilegiadas. Se você não é o destinatário, não está autorizado a utilizar o material para qualquer fim. Solicitamos que você apague a mensagem e avise imediatamente o remetente. O conteúdo desta mensagem e seus anexos não representam necessariamente a opinião e a intenção da empresa, não implicando em qualquer obrigação ou responsabilidade por parte desta.
This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. The contents of this message and its attachments do not necessarily express the opinion or the intention of the company, and do not imply any legal obligation or responsibilities from this company.
|