如何在改造传统的ASP日期字符串 [英] How to transform a date-string in classic asp

查看:74
本文介绍了如何在改造传统的ASP日期字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点blockheaded现在...

I'm a little blockheaded right now...

我在欧洲格式的日期字符串 DD.MM.YYYY 并需要将其转化为 MM.DD.YYYY 与传统的ASP。任何快速的想法?

I have a date string in european format dd.mm.yyyy and need to transform it to mm.dd.yyyy with classic ASP. Any quick ideas?

在此先感谢!

推荐答案

如果它总是以这种格式,你可以使用拆分

If its always in that format you could use split

d = split(".","dd.mm.yyyy")
s = d(1) & "." & d(0) & "." & d(2)

这将允许像99年1月2日以及

this would allow for dates like 1.2.99 as well

这篇关于如何在改造传统的ASP日期字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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