报表的表格单元格中的格式字符串 [英] Format String in Table Cell of Report

查看:79
本文介绍了报表的表格单元格中的格式字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问为什么每次我在表格单元格中的值上格式化字符串时,它都会忽略我的命令并且不会显示我想要的字符串。例如,我的值具有以下格式:17/06/2014。但每次我点击格式字符串按钮并选择我想要的格式(我甚至自定义我的格式)但显示时,它将显示为17/06/2014 00:00:00这不是我想要的。任何帮助,将不胜感激。谢谢。

Hi, may i ask that why every time i format a string on a value in table cell, it would ignore my command and did not display the string as i wanted. For example, i have a value which is in the following format : 17/06/2014. But every time i click on the "Format String" button and select the format i want(i even custom my ow format) but when display, it would display as 17/06/2014 00:00:00 which is not i wanted. Any help would be appreciated. Thank you.

推荐答案

在存储过程中更改以下内容:



CONVERT(VARCHAR(10) ,STARTDATE,103)



而103是格式dd / MM / yyyy
inside the stored procedure change the following:

CONVERT(VARCHAR(10), STARTDATE, 103)

whereas 103 is for the format dd/MM/yyyy


这篇关于报表的表格单元格中的格式字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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