如何以我自己的方式设置从数据库中获取的日期? [英] How to set date fetched from database in my own way?

查看:75
本文介绍了如何以我自己的方式设置从数据库中获取的日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置从数据库中获取的日期。

我的变量中有日期,我想在JSP页面中设置它。

如何自定义用户可理解的语言在屏幕上输出的日期格式。

how can i set the date fetched from database.
I have date in my variable, and i want to set it in my JSP Page.
How to customize the format of the date to output on screen in user-understandable language.

推荐答案

您可以在数据库或UI级别执行此操作。

通过数据库获取日期,然后以您需要使用JavaScript显示的任何方式对其进行格式化。
You can do this at the database or at the UI level.
Get the date through the database and then format it in whatever way you need to display using JavaScript.


这篇关于如何以我自己的方式设置从数据库中获取的日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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