custom date/time formatting sql server
i am perplexing stored way selects columns list adds 2 additional columns resultset. 2 additional columns outcome conversions domain list datetime field.
the datetime format domain following format 'yyyy-mm-dd hh:mm:ss.s'
the 2 additional fields should following format:
- ddmmm
- hhmmt, where t 'a' a.m. 'p' p.m.
example: information domain '2008-10-12 13:19:12.0' following extracted fields should contain:
- 12oct
- 0119p
i have attempted controlling modify twine formats, nonetheless zero formats review cost i wish get. i am pondering along lines extracting domain information around modify following controlling replace, nonetheless i definitely need assistance here, i am sure.
could anyone good capable stored procedures assistance me out here?
thanks!
Comments
Post a Comment