How to display Day
-
HI All, I want to display day like Tuesday , Friday , Sunday etc etc. I use the following response.write(date.now.day)...........But instead of day date is displayed......Please help me..... I m using VB.NET.......... Thanks in advance..........
check this DateTime.Today.DayOfWeek.ToString() Will return day of the week
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
check this DateTime.Today.DayOfWeek.ToString() Will return day of the week
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
I have tried that too..........But failed..........I dont know whts wrong with that......
How it got failed could you be more specific ? Why are you trying Response.Write function ? Let me know what are you trying to do ?
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
Actually I m sending Email.....But first I store all info in string "emailBody", then at last I send Email and assing that variable to Emailbody........
-
Actually I m sending Email.....But first I store all info in string "emailBody", then at last I send Email and assing that variable to Emailbody........
-
OOPS went for lunch When i clicked reply to this question,that time No replies were there. At my end the internet is very slow,so in mean time you replied. It always happened if you didn't refresh CP page, CP should automatically get refresh after certain time interval to avoid similar replies. What you say ?
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
OOPS went for lunch When i clicked reply to this question,that time No replies were there. At my end the internet is very slow,so in mean time you replied. It always happened if you didn't refresh CP page, CP should automatically get refresh after certain time interval to avoid similar replies. What you say ?
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
dim emailbody as string. emailbody = "some text" emailbody &= date.now.day Dim mailObj As New Mail.MailMessage mailObj.To = "myID@domain.com" mailObj.From = "admin@domain.com" mailObj.Subject = "Testing" mailObj.Body = emailBody mailObj.BodyFormat = MailFormat.Html SmtpMail.SmtpServer = "127.0.0.1" SmtpMail.Send(mailObj)
-
dim emailbody as string. emailbody = "some text" emailbody &= date.now.day Dim mailObj As New Mail.MailMessage mailObj.To = "myID@domain.com" mailObj.From = "admin@domain.com" mailObj.Subject = "Testing" mailObj.Body = emailBody mailObj.BodyFormat = MailFormat.Html SmtpMail.SmtpServer = "127.0.0.1" SmtpMail.Send(mailObj)
try this use DateTime.Today.DayOfWeek.ToString(); instead what you have been using. Suggesting to use StringBuilder instead of string Don't know about other things which are correct or not Again if get any problem why the mail is not getting send then please have a look in google dim emailbody as string. emailbody = "some text" emailbody &= DateTime.Today.DayOfWeek.ToString(); Dim mailObj As New Mail.MailMessage mailObj.To = "myID@domain.com" mailObj.From = "admin@domain.com" mailObj.Subject = "Testing" mailObj.Body = emailBody mailObj.BodyFormat = MailFormat.Html SmtpMail.SmtpServer = "127.0.0.1" SmtpMail.Send(mailObj)
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
dim emailbody as string. emailbody = "some text" emailbody &= date.now.day Dim mailObj As New Mail.MailMessage mailObj.To = "myID@domain.com" mailObj.From = "admin@domain.com" mailObj.Subject = "Testing" mailObj.Body = emailBody mailObj.BodyFormat = MailFormat.Html SmtpMail.SmtpServer = "127.0.0.1" SmtpMail.Send(mailObj)
-
try this use DateTime.Today.DayOfWeek.ToString(); instead what you have been using. Suggesting to use StringBuilder instead of string Don't know about other things which are correct or not Again if get any problem why the mail is not getting send then please have a look in google dim emailbody as string. emailbody = "some text" emailbody &= DateTime.Today.DayOfWeek.ToString(); Dim mailObj As New Mail.MailMessage mailObj.To = "myID@domain.com" mailObj.From = "admin@domain.com" mailObj.Subject = "Testing" mailObj.Body = emailBody mailObj.BodyFormat = MailFormat.Html SmtpMail.SmtpServer = "127.0.0.1" SmtpMail.Send(mailObj)
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
Thanks Sandeep Brother....... My problem solved with the following.......... DateTime.Today.DayOfWeek.ToString(); I realy appriciate u people........ Thanks for helping.....