Reformatting a date

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Rusty

Reformatting a date

Postby Rusty » Tue Oct 05, 2004 2:29 am

Sorry for the noob question, but we are using datapipe/textpipe to try and reformat a date (in a varcvhar field). It currently is represented as:

20041004

And we need to insert hyphens:

2004-10-04

What's the simplest method?

Thanks

User avatar
DataMystic Support
Site Admin
Posts: 2136
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Wed Oct 06, 2004 11:52 am

Use an EasyPattern

[ capture(4 digits), capture(2 digits), capture(2 digits) ]

replace with

$1-$2-$3
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest