日期格式占用网格中的2行 [英] Date format occupying 2 lines in grid

查看:87
本文介绍了日期格式占用网格中的2行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下内容从存储过程提供给gridview。





然而日期字段占用2行从而使gridview非常笨重,记录的记录更少





请为我提供完整的日期格式选项以使我能够更正







如何更正?

< br $> b $ b





 选择 Zidno ' 贷款ID', 
Zid_Code ' COUNT',
ZCustomer ' NAME',
Zloanumber ' TRANS NO',
CONVERT( Char 12 ),ZTrans_Date, 13 ' REPAY DATE',
Zperiod ' PERIOD',
Zyear ' 年度
来自#SearchResults







谢谢

解决方案

不确定我理解你的完全问题,因为你只显示SQL代码,但将问题标记为ac#问题。



对于各种日期格式,你可以转到这些MSDN页面。

标准日期和时间格式字符串 [ ^ ]



自定义日期和时间格式字符串 [ ^ ]



那里的信息可以帮助你沿。

The following feeds into a gridview from a stored procedure.


However the date field takes up 2 lines thereby making the gridview very bulky with less records diplayed


Please provide me withe a full options of date formats to enable me correct this

.

How do I correct it?




Select Zidno     'LOAN ID'  ,
               Zid_Code  'COUNT'  ,
               ZCustomer 'NAME',
               Zloanumber 'TRANS NO',
             CONVERT(Char(12),ZTrans_Date,13) 'REPAY DATE',
               Zperiod    'PERIOD',
               Zyear      'YEAR'
        From #SearchResults




Thanks

解决方案

Not sure I understand your problem fully as you only show SQL code but tag the question as a c# problem.

For various date formatting, you can go to these MSDN pages.
Standard Date and Time Format Strings[^]

Custom Date and Time Format Strings[^]

The information there should help you along.


这篇关于日期格式占用网格中的2行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆