How to pass a parameter from vb.net

后端 未结 3 1508
心在旅途
心在旅途 2020-12-21 23:30

I have a Program that will auto run each night, run a query, and email results. In my program I am calling a function as part of the query... What i\'d like to is pass the

3条回答
  •  感情败类
    2020-12-21 23:56

    Try This :

    Dim StartDate as string = DateTime.Today.ToString("yyyy/MM/dd") & " 00:00:00"
    Dim EndDate as string = DateTime.Today.ToString("yyyy/MM/dd") & " 23:59:59"
    

    I don't know what database server you are using. Try different date format if that didn't work, like DateTime.Today.ToString("yyyy-MM-dd")

提交回复
热议问题