[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

fomat date

Posted on 2004-09-21
3
Medium Priority
?
257 Views
Last Modified: 2010-04-23
how can I format dates to  return ISO format "yyyy-mm-dd hh:mm:ss" ?

i have a string   sData = '#5/17/2001 9:37:00 AM#'
0
Comment
Question by:testn1
  • 2
3 Comments
 

Author Comment

by:testn1
ID: 12114742
or   sData = '#5/17/2001#'
0
 
LVL 10

Accepted Solution

by:
Clif earned 2000 total points
ID: 12114820
Format(sData, "yyyy-MM-dd HH:mm:ss")
0
 
LVL 10

Expert Comment

by:Clif
ID: 12114846
Oops, I missed the sData (which I presume means it's a string):

Format(CDate(sData), "yyyy-MM-dd HH:mm:ss")
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Integration Management Part 2
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question