zoukankan      html  css  js  c++  java
  • VB 中DTpicker日期控件的运用

    1、如何加载
    VB默认的控件栏中是没有DTpicker日期控件的,添加过程:工具——部件——控件——“Microsoft  Windows Common Controls-2.6.0”——应用——确定
     
    2、如何与数据库中的日期格式相符合
    DTPicker1.Format   =   dtpCustom   
    DTPicker1.CustomFormat   =   "yyyy.mm.dd"
     
    我自己的方法:
    控制面板—— 区域和语言设置——自定义——日期——短日期格式设置成需要的模式,如:YYYY.MM.DD

    3、在SQL语言中取值
    "select * from ic_coach  where run_date>'"& DTPicker1.Value & "'" & "and run_date<'" & DTPicker2.Value & "'"
     

    版权声明:本文为博主原创文章,未经博主允许不得转载。

  • 相关阅读:
    Merge Two Sorted Lists
    4Sum
    Letter Combinations of a Phone Number
    3Sum Closest
    3Sum
    Longest Common Prefix
    Roman to Integer
    Integer to Roman
    Container With Most Water
    Regular Expression Matching
  • 原文地址:https://www.cnblogs.com/lucari/p/4608601.html
Copyright © 2011-2022 走看看