Date prob

Results 1 to 2 of 2

Thread: Date prob

  1. #1
    Lynn Maharet Guest

    Default Date prob

    Hi all,<BR><BR>I have this prob..<BR><BR>I have this date field which is optional. The type for the date in SQl server is DateTime.<BR><BR>So actually what the user enters is text. Before storing to the db I will format using this FormatDateTime(str,2)..2 meaning it&#039s a Short Date.<BR><BR>But if it&#039s empty an error occurs cannot convert char type to date time...<BR>Pls help...! Thanks ;)

  2. #2
    Join Date
    Dec 1969

    Default RE: Date prob

    use Cast function for that...

Posting Permissions

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