数据集或datagridview中的日期格式更改 [英] date format change in dataset or datagridview

查看:99
本文介绍了数据集或datagridview中的日期格式更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开发人员,

我是Vishal Sharma
我正在将一个csv文件加载到数据集中,并在datagridview中查看它们.
我的问题是在csv文件中,名称为"First_date"的数据列的格式为:30.09.10 20:04:00

我想将日期格式更改为30/09/2010 20:04:00

我不知道更多列是否包含这种日期格式.
我想为数据集或datagridview设置默认日期格式,
并且在加载文件时,日期格式将自动更改

请立即解决我的问题.

Hi developers,

I am Vishal Sharma
I''m loading a csv file into dataset and view them in datagridview.
My problem is that in the csv file, the datacolumn with the name "First_date" has the format: 30.09.10 20:04:00

and I want to change the date format into 30/09/2010 20:04:00

I have no knowledge if more columns contain this type of date format.
I want to set a default date format for dataset or datagridview,
and when a file is loaded, the date format will automatically be changed

Please solve my problem immediatly.

推荐答案

看看
Take a look at THIS[^] thread might be useful for you.


这篇关于数据集或datagridview中的日期格式更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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