Java中的日期格式问题 [英] Date format issue in java

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

问题描述

我的日期格式为"2009年10月1日星期四00:00:00 GMT + 05:30 2009"我希望将其更改为"2009年10月1日星期四23:59:59 GMT + 05:30".
为此,我将此日期变量转换为字符串.
但是现在我想要那个转换回日期变量?
我正在使用java 1.5,springs,hibernate和mysql db.

I have date in the following format "Thu Oct 01 00:00:00 GMT+05:30 2009" and i wanted that to be changed to "Thu Oct 01 23:59:59 GMT+05:30 2009".
So for this i converted this date variable to string .
But now i wanted that converted back to date variable?
I am using java 1.5 , springs, hibernate and mysql db.

推荐答案

您确实注意到您在C#论坛上,不是吗?
You did notice you're on a C# forum, didn't you?


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

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