Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateTime Formula 1

Status
Not open for further replies.

Sahubba

Programmer
Mar 16, 2011
108
US
Hello,

I am trying to get a birth date to look a certain way.
Column is a DateTime data type and I want it to look like this.
1986-02-14T00:00:00. Can someone help me with this formula?

Thanks,
Sara
 
Replace Currentdatetime with your birth datetime field.

totext(date(currentdatetime), 'yyyy-MM-dd')+'T'+ totext(time(currentdatetime), 'HH:mm:ss')

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top