Reformatting a date

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
Rusty

Reformatting a date

Post by Rusty »

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: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by DataMystic Support »

Use an EasyPattern

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

replace with

$1-$2-$3
Post Reply