I have string in database column called ConsignDate
in the format 1980-09-04
. How can I convert this string into a date in DD-MM-YYYY
format?
假设您的原始格式是 yyyy-mm-dd(并且它们始终是 4 位数字年份,并且始终是 2 位数字月份和日期)
right(ConsignDate,2)+"-"+mid(ConsignDate,6,2)+"-"+left(ConsignDate,4)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.