乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
楼主: guitarguy1685

[编程交流] Date format (i.e. 23DEC14)

[复制链接]

5

主题

956

帖子

963

银币

初来乍到

Rank: 1

铜币
35
发表于 2022-7-5 21:09:52 | 显示全部楼层
 
pBe
 
actually Tharwat applied decrease , (1- n)
ie: (1- 12) =11 th
but it also looks like (1 - 12), OP maybe confused if not coloured tag
回复

使用道具 举报

pBe

32

主题

2722

帖子

2666

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
211
发表于 2022-7-5 21:11:22 | 显示全部楼层
 
Oh i see, its must be my eyes..
 
Thank you for clarifying hanhphuc.  kudos to Tharwat
 
Personally i prefer an association list to avoid confusion such as the one above.
回复

使用道具 举报

63

主题

6297

帖子

6283

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
358
发表于 2022-7-5 21:16:24 | 显示全部楼层
Thank you hanhphuc for the clarifications , appreciated alot
 
 
Thank you pBe
回复

使用道具 举报

1

主题

475

帖子

481

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-5 21:19:50 | 显示全部楼层
Hi guitarguy1685,
a different approach, not using 'CDATE' but also getting the date format as your exemple '23DEC13'
  1. (menucmd "m=$(edtime,0,ddmonyy)");; returns "28Dec14";; if uppercase is required(strcase(menucmd "m=$(edtime,0,ddmonyy)"));; returns "28DEC14"
I hope this helps
Henrique
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 21:22:24 | 显示全部楼层
 
This is the method I would have suggested
 
Nice one Henrique
回复

使用道具 举报

1

主题

475

帖子

481

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-5 21:28:47 | 显示全部楼层
 
 
Thank you, Lee  
 
Cheers
Henrique
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-7-12 12:55 , Processed in 0.857154 second(s), 62 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表