You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: formatter.go
    path of file: ./repos/corteza/server/compose/service/values
    
    the code of the file until where you have to start completion: package values

import (
	"strings"
	"time"

	"github.com/cortezaproject/corteza/server/compose/types"
	"github.com/cortezaproject/corteza/server/pkg/expr"
	"github.com/cortezaproject/corteza/server/pkg/logger"
	"go.uber.org/zap"
)

type (
	formatter struct{}
)

// Formatter initializes formatter
//
// Not really needed, follo
    
func (formatter) fDatetime(v *types.RecordValue, f *types.ModuleField) *types.RecordValue {
	var (
		// database formats
		dbFormats []string

		// output format
		internalFormat string
	)

	if f.Options.Bool("onlyDate") {
		internalFormat = datetimeInternalFormatDate
		dbFormats = []string{
			datetimeInternalFormatDate,
		}
	} else if f.Options.Bool("onlyTime") {
		internalFormat = datetimeIntenralFormatTime
		dbFormats = []string{
			datetimeIntenralFormatTime,
			"15:04",
		}
	} else {
		internalFormat = datetimeInternalFormatFull
		// date & time
		dbFormats = []string{
			datetimeInternalFormatFull,
			"2006-01-02 15:04:05",
			"2006-01-02 15:04",
		}
	}

	for _, format := range dbFormats {
		parsed, err := time.Parse(format, v.Value)
		if err == nil {
			v.Value = parsed.UTC().Format(internalFormat)
			return v
		}
	}

	v.Value = ""
	return v

}