Apr 13, 2004 #1 asafb Programmer Jun 17, 2003 80 US hello how do i retrieve the current date and pass it tried date() doesn't work tried cdate(thedate) but get syntax error 12:00:00 a.m. i want short date format 08/08/2004
hello how do i retrieve the current date and pass it tried date() doesn't work tried cdate(thedate) but get syntax error 12:00:00 a.m. i want short date format 08/08/2004
Apr 13, 2004 #2 yu217171 Programmer Aug 2, 2002 203 CA Try this, string myDate = DateTime.Now.ToShortDateString(); Keith Upvote 0 Downvote
Apr 13, 2004 1 #3 jzelhart Programmer Feb 10, 2003 469 US If you just need the date you can use Today instead of Now. Me.lblCurrentDate.Text = Format(Today(), "MM/dd/yy") Hope this helps. Hope everyone is having a great day! Thanks - Jennifer Upvote 0 Downvote
If you just need the date you can use Today instead of Now. Me.lblCurrentDate.Text = Format(Today(), "MM/dd/yy") Hope this helps. Hope everyone is having a great day! Thanks - Jennifer
Apr 13, 2004 Thread starter #4 asafb Programmer Jun 17, 2003 80 US Thanks Jennifer it worked! you're the best! Upvote 0 Downvote