Generating date with

Results 1 to 2 of 2

Thread: Generating date with

  1. #1
    Join Date
    Dec 1969

    Default Generating date with

    Can someone please show me how to generate date using in <BR>The type of date generation i want is, the day, month and year of the date should be from a dropdown list so my user can select the desire date. e.x birthdate.<BR>can some 1 please show me how to get this done in thanks people.

  2. #2
    Join Date
    Dec 1969

    Default RE: Generating date with

    Hi Simon,<BR><BR>Type this in your web.config before the &#060;/system.web&#062;:<BR>&#060;globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="nl-NL"/&#062;<BR><BR>By setting this the function returns the date in the format dd-MM-yyyy.<BR><BR>Dim strToday As String<BR><BR>&#039;returns 24-4-2002 or 24/4/2002 not sure<BR>strToDay = DateTime.ToDay<BR><BR>Another solution is this:<BR>Dim dtToday as DateTime<BR>Dim strToday as String<BR><BR>dtToday = DateTime.Today<BR>strToday = dtToday.ToString("dd/MM/yyyy")<BR><BR>You can add 1 day like this dtToday += dtToday.AddDay(1)<BR><BR>Good luck,<BR><BR>Ultima

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts