Ask a Question related to ASP.NET General, Design and Development.
-
Andreas Klemt #1
HowTo check if Date is empty (#12.00.00 AM#) ???
Hello,
I have this
Dim myDate As Date
...
...
How can I check if this date is empty (value #12.00.00 AM# is in there) ?
Thanks,
Andreas
Andreas Klemt Guest
-
How do you check for empty results
I am pulling some XML in from PHP. Everything works fine until there are no results. My XML is formed like this: <books> <book> <title>Book... -
to check to date must be greater or equal from date
Hi All, I code my date selection like this : <select name="day" class="formData"> <cfloop index="d" from="1" to="31" step="+1"> <option... -
howto get the modification date of a remote file?
hello all, is there an easy way to get the creation or modification date in a remote server without using ftp_mdtm($url?)? I would like to be... -
HowTo check if my String is a Number (Integer) ?
You can try If IsNumeric(str) Then Convert.ToInt32(str) End If -- Craig Deelsnyder Microsoft MVP - ASP/ASP.NET -
check if querystring is empty
if Request.QueryString("sub1")="" then 'it's empty else 'it's something end if "Thomas Henz" <thenz@t-online.de> wrote in message... -
Carl Prothman [MVP] #2
Re: HowTo check if Date is empty (#12.00.00 AM#) ???
"Andreas Klemt" <aklemt68@hotmail.com> wrote
Andreas,> I have this
> Dim myDate As Date
> How can I check if this date is empty (value #12.00.00 AM# is in there) ?
>
Try using the Date.MinValue property
If myDate = Date.MinValue Then
' myDate is empty
End If
--
Thanks,
Carl Prothman
Microsoft ASP.NET MVP
[url]http://www.able-consulting.com[/url]
Carl Prothman [MVP] Guest
-
Andreas Klemt #3
Re: HowTo check if Date is empty (#12.00.00 AM#) ???
Thanks Carl,
that helped me!
What is better?
a) If myDate = Date.MinValue Then
b) If myDate.equals(Date.MinValue) Then
Regards,
Andreas
"Carl Prothman [MVP]" <carlpr@spamcop.net> schrieb im Newsbeitrag
news:OfkxXmpXDHA.652@TK2MSFTNGP10.phx.gbl...?> "Andreas Klemt" <aklemt68@hotmail.com> wrote> > I have this
> > Dim myDate As Date
> > How can I check if this date is empty (value #12.00.00 AM# is in there)>> >
> Andreas,
> Try using the Date.MinValue property
>
> If myDate = Date.MinValue Then
> ' myDate is empty
> End If
>
> --
>
> Thanks,
> Carl Prothman
> Microsoft ASP.NET MVP
> [url]http://www.able-consulting.com[/url]
>
>
>
>
Andreas Klemt Guest
-
Carl Prothman [MVP] #4
Re: HowTo check if Date is empty (#12.00.00 AM#) ???
"Andreas Klemt" <aklemt68@hotmail.com> wrote
Better? They do the same task.> What is better?
> a) If myDate = Date.MinValue Then
> b) If myDate.equals(Date.MinValue) Then
>
I prefer the "=" since (IMHO) it's more readable. Plus it's less typing... ;-)
I think it comes down to developer preference...
--
Thanks,
Carl Prothman
Microsoft ASP.NET MVP
[url]http://www.able-consulting.com[/url]
Carl Prothman [MVP] Guest



Reply With Quote

